From 2d38a8965e2dd448ecf61e9be1af0902d41dfbb8 Mon Sep 17 00:00:00 2001
From: juanf <juanf>
Date: Fri, 11 Nov 2016 11:55:54 +0000
Subject: [PATCH] SSDM-4375 : style fix, some cosmetic fixes to layout.

SVN: 37313
---
 .../html/js/views/SampleForm/widgets/StorageListView.js  | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/StorageListView.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/StorageListView.js
index f3e52b43999..35602e94ee3 100644
--- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/StorageListView.js
+++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/StorageListView.js
@@ -187,7 +187,9 @@ function StorageListView(storageListController, storageListModel) {
 				'height' : '90%'
 		};
 		
-		var container = "<div class='row col-md-12 form-horizontal' id='storage-pop-up-container'></div><br><a class='btn btn-default' id='storage-accept'>Accept</a> <a class='btn btn-default' id='storage-cancel'>Cancel</a>"
+		var container = "<div class='row col-md-12 form-horizontal' id='storage-pop-up-container'></div>";
+		var containerButtons = "<a class='btn btn-default' id='storage-accept'>Accept</a> <a class='btn btn-default' id='storage-cancel'>Cancel</a>";
+			
 		Util.blockUI(container, css);
 		
 		
@@ -211,8 +213,11 @@ function StorageListView(storageListController, storageListModel) {
 		storageController.getModel().storagePropertyGroup = storagePropGroup;
 		this._storageListController._saveState(storagePropGroup);
 		storageController.bindSample(this._storageListModel.sample, this._storageListModel.isDisabled);
-		storageController.getView().repaint($("#storage-pop-up-container"));
 		
+		var storageContainer = $("#storage-pop-up-container");
+		storageController.getView().repaint(storageContainer);
+		
+		storageContainer.append(containerButtons);
 		$("#storage-accept").on("click", function(event) {
 			storageController.isValid(function(isValid) {
 				if(isValid) {
-- 
GitLab