Skip to content
Snippets Groups Projects
Commit 021f2b12 authored by Fuentes Serna  Juan Mariano (ID SIS)'s avatar Fuentes Serna Juan Mariano (ID SIS)
Browse files

SSDM-6017 : Full screen mode

parent 8684f64a
No related branches found
No related tags found
No related merge requests found
......@@ -371,6 +371,24 @@ var LayoutManager = {
alert("Layout manager unable to know the layout, this should never happen.");
}
},
fullScreen : function() {
var width = $( window ).width();
if (width > this.DESKTOP_SIZE) {
this.firstColumn.hide();
this.thirdColumn.hide();
this.secondColumn.width(width);
} else if (width > this.TABLET_SIZE) {
this.firstColumn.hide();
this.secondColumn.width(width);
} else if (width > this.MOBILE_SIZE) {
this.secondColumn.width(width);
} else {
alert("Layout manager unable to go fullScreen, this should never happen.");
}
},
restoreStandardSize : function() {
LayoutManager.resize(mainController.views, true);
},
reloadView : function(view, forceFirstTime) {
var _this = this;
this.isLoadingView = true;
......
......@@ -23,7 +23,20 @@ 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-open", null, "Show/Hide Storage B");
this._showHideStorageToBtn = FormUtil.getButtonWithIcon("glyphicon-eye-open", null, "Toggle Storage B");
this._showHideMenuBtn = FormUtil.getButtonWithIcon("glyphicon-resize-full", function() {
var iconSpan = $(this.children[0]);
if(iconSpan.hasClass("glyphicon-resize-full")) {
iconSpan.removeClass("glyphicon-resize-full");
iconSpan.addClass("glyphicon-resize-small");
LayoutManager.fullScreen();
} else if(iconSpan.hasClass("glyphicon-resize-small")) {
iconSpan.removeClass("glyphicon-resize-small");
iconSpan.addClass("glyphicon-resize-full");
LayoutManager.restoreStandardSize();
}
}, "Toggle Full Screen");
this._moveBtn.removeClass("btn-default");
this._moveBtn.addClass("btn-primary");
......@@ -32,7 +45,7 @@ function StorageManagerView(storageManagerController, storageManagerModel, stora
var $container = views.content;
$header.append($("<h2>").append("Storage Manager"));
$header.append(this._showHideStorageToBtn).append(" ").append(this._moveBtn);
$header.append(this._moveBtn).append(" ").append(this._showHideStorageToBtn).append(" ").append(this._showHideMenuBtn);
var $containerColumn = $("<form>", {
'role' : "form",
......
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