From 71bcd8cd365cf0dec243aac4472dc7e8e076b92f Mon Sep 17 00:00:00 2001
From: "Fuentes Serna  Juan Mariano (ID SIS)" <juanf@bs-mbpr28.d.ethz.ch>
Date: Thu, 8 Feb 2018 10:08:24 +0100
Subject: [PATCH] SSDM-6013 : ELN Storage: modification to storage layout (show
 only 1 storage by default)

---
 .../html/js/views/StorageManager/StorageManagerView.js | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/StorageManager/StorageManagerView.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/StorageManager/StorageManagerView.js
index 28f78cb5124..7c906161cb5 100644
--- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/StorageManager/StorageManagerView.js
+++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/StorageManager/StorageManagerView.js
@@ -23,7 +23,7 @@ function StorageManagerView(storageManagerController, storageManagerModel, stora
 	this._changeLogContainer = $("<div>").append("None");
 	
 	this._moveBtn = FormUtil.getButtonWithIcon("glyphicon-floppy-disk", null, "Save Changes");
-	this._showHideStorageToBtn = FormUtil.getButtonWithIcon("glyphicon-eye-close", null, "Show/Hide Storage B");
+	this._showHideStorageToBtn = FormUtil.getButtonWithIcon("glyphicon-eye-open", null, "Show/Hide Storage B");
 	this._moveBtn.removeClass("btn-default");
 	this._moveBtn.addClass("btn-primary");
 	
@@ -49,6 +49,14 @@ function StorageManagerView(storageManagerController, storageManagerModel, stora
 		this._$storageToContainer.hide();
 		var _this = this;
 		this._showHideStorageToBtn.click(function() {
+			var iconSpan = $(_this._showHideStorageToBtn.children()[0]);
+			if(iconSpan.hasClass("glyphicon-eye-open")) {
+				iconSpan.removeClass("glyphicon-eye-open");
+				iconSpan.addClass("glyphicon-eye-close");
+			} else if(iconSpan.hasClass("glyphicon-eye-close")) {
+				iconSpan.removeClass("glyphicon-eye-close");
+				iconSpan.addClass("glyphicon-eye-open");
+			}
 			_this._$storageToContainer.toggle();
 		});
 		
-- 
GitLab