From 5e43035a57b39b65650698f3ff35d206b97234c9 Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Sat, 29 Nov 2014 21:20:14 +0100 Subject: [PATCH] baculum: Add window options button --- .../protected/JavaScript/slide-window.js | 8 ++++++++ .../protected/Portlets/SlideWindow.tpl | 19 +++++++++--------- .../themes/Baculum-v1/gear-icon-alpha.png | Bin 0 -> 1250 bytes gui/baculum/themes/Baculum-v1/gear-icon.png | Bin 0 -> 881 bytes gui/baculum/themes/Baculum-v1/style.css | 16 +++++++++++++++ 5 files changed, 34 insertions(+), 9 deletions(-) create mode 100644 gui/baculum/themes/Baculum-v1/gear-icon-alpha.png create mode 100644 gui/baculum/themes/Baculum-v1/gear-icon.png 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 @@
+