From: Marcin Haba Date: Sat, 29 Nov 2014 20:20:14 +0000 (+0100) Subject: baculum: Add window options button X-Git-Tag: Release-7.2.0~110 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5e43035a57b39b65650698f3ff35d206b97234c9;p=bacula%2Fbacula baculum: Add window options button --- diff --git a/gui/baculum/protected/JavaScript/slide-window.js b/gui/baculum/protected/JavaScript/slide-window.js index ed9857410e..8ee9938172 100644 --- a/gui/baculum/protected/JavaScript/slide-window.js +++ b/gui/baculum/protected/JavaScript/slide-window.js @@ -7,6 +7,8 @@ var SlideWindowClass = Class.create({ fullSizeEl : null, search: null, toolbar: null, + tools: null, + options: null, configurationObj: null, loadRequest : null, repeaterEl: null, @@ -30,6 +32,7 @@ var SlideWindowClass = Class.create({ contentItems : 'slide-window-element', contentAlternatingItems : 'slide-window-element-alternating', toolsButtonSuffix : '-slide-window-tools', + optionsButtonSuffix : '-slide-window-options', actionsSuffix : '-slide-window-actions', toolbarSuffix : '-slide-window-toolbar', titleSuffix : '-slide-window-title' @@ -43,6 +46,7 @@ var SlideWindowClass = Class.create({ this.windowId = windowId; this.window = $(this.windowId + this.elements.containerSuffix); this.tools = $(this.windowId + this.elements.toolsButtonSuffix); + this.options = $(this.windowId + this.elements.optionsButtonSuffix); if(data.hasOwnProperty('showId')) { this.showEl = $(data.showId); @@ -112,6 +116,10 @@ var SlideWindowClass = Class.create({ this.tools.observe('click', function() { this.toggleToolbar(); }.bind(this)); + + this.options.observe('click', function() { + this.toggleToolbar(); + }.bind(this)); }, openWindow : function() { diff --git a/gui/baculum/protected/Portlets/SlideWindow.tpl b/gui/baculum/protected/Portlets/SlideWindow.tpl index 01e06f7f92..aa0ca6b5a8 100644 --- a/gui/baculum/protected/Portlets/SlideWindow.tpl +++ b/gui/baculum/protected/Portlets/SlideWindow.tpl @@ -2,6 +2,7 @@
+