From 8bddfb7746ade36e31cc0098771b2fe2f2c6735e Mon Sep 17 00:00:00 2001
From: juanf <juanf>
Date: Mon, 7 Mar 2016 14:07:27 +0000
Subject: [PATCH] SSDM-3292 : New Toolbar, polishing.

SVN: 35817
---
 .../eln-lims/html/js/views/SampleForm/SampleFormView.js      | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/SampleFormView.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/SampleFormView.js
index 1553fc5d4c7..000d626d8c2 100644
--- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/SampleFormView.js
+++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/SampleFormView.js
@@ -136,10 +136,7 @@ function SampleFormView(sampleFormController, sampleFormModel) {
 			
 			//Edit
 			if(this._sampleFormModel.mode === FormMode.VIEW) {
-				var $editButton = $("<a>", { 'class' : 'btn btn-default'} )
-									.append($('<span>', { 'class' : 'glyphicon glyphicon-edit' }));
-				
-				$editButton.click(function() {
+				var $editButton = FormUtil.getButtonWithIcon("glyphicon-edit", function () {
 					mainController.changeView('showEditSamplePageFromPermId', _this._sampleFormModel.sample.permId);
 				});
 				toolbarModel.push({ component : $editButton, tooltip: "Enable Editing" });
-- 
GitLab