From 03a27fab5d37d4fbb9e0f8a07be998a9f51ea6f2 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 29 Jul 2013 08:50:23 +0000 Subject: [PATCH] add reload button --- static/js/mainMenu.js | 3 ++- static/js/reloadButton.js | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 static/js/reloadButton.js diff --git a/static/js/mainMenu.js b/static/js/mainMenu.js index e03fd7c82..c3e42ed5b 100644 --- a/static/js/mainMenu.js +++ b/static/js/mainMenu.js @@ -9,7 +9,8 @@ pandora.ui.mainMenu = function() { fullscreenState = Ox.Fullscreen.getState(), that = Ox.MainMenu({ extras: [ - pandora.$ui.loadingIcon = pandora.ui.loadingIcon() + pandora.$ui.loadingIcon = pandora.ui.loadingIcon(), + pandora.$ui.reloadButton = pandora.ui.reloadButton() ], id: 'mainMenu', menus: [].concat( diff --git a/static/js/reloadButton.js b/static/js/reloadButton.js new file mode 100644 index 000000000..2d1917d95 --- /dev/null +++ b/static/js/reloadButton.js @@ -0,0 +1,19 @@ +'use strict'; + +pandora.ui.reloadButton = function() { + + var that = Ox.Button({ + style: 'symbol', + title: 'reload', + tooltip: Ox._('Reload Application'), + type: 'image' + }) + .bindEvent({ + click: function() { + pandora.ui.appPanel.reload(); + } + }); + + return that; + +};