add reload button

This commit is contained in:
rolux 2013-07-29 08:50:23 +00:00
parent b0ecc8b077
commit 03a27fab5d
2 changed files with 21 additions and 1 deletions

View file

@ -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(

19
static/js/reloadButton.js Normal file
View file

@ -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;
};