diff --git a/static/js/mainMenu.js b/static/js/mainMenu.js index e03fd7c8..c3e42ed5 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 00000000..2d1917d9 --- /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; + +};