Skip to content
Snippets Groups Projects
Commit 8bddfb77 authored by juanf's avatar juanf
Browse files

SSDM-3292 : New Toolbar, polishing.

SVN: 35817
parent 21e2aadc
No related branches found
No related tags found
No related merge requests found
...@@ -136,10 +136,7 @@ function SampleFormView(sampleFormController, sampleFormModel) { ...@@ -136,10 +136,7 @@ function SampleFormView(sampleFormController, sampleFormModel) {
//Edit //Edit
if(this._sampleFormModel.mode === FormMode.VIEW) { if(this._sampleFormModel.mode === FormMode.VIEW) {
var $editButton = $("<a>", { 'class' : 'btn btn-default'} ) var $editButton = FormUtil.getButtonWithIcon("glyphicon-edit", function () {
.append($('<span>', { 'class' : 'glyphicon glyphicon-edit' }));
$editButton.click(function() {
mainController.changeView('showEditSamplePageFromPermId', _this._sampleFormModel.sample.permId); mainController.changeView('showEditSamplePageFromPermId', _this._sampleFormModel.sample.permId);
}); });
toolbarModel.push({ component : $editButton, tooltip: "Enable Editing" }); toolbarModel.push({ component : $editButton, tooltip: "Enable Editing" });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment