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 28f78cb5124e1d5a7b2999037a5fad2ac78d14e4..7c906161cb5d93a54f0118525c36be0767fed8eb 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(); });