add reload button
This commit is contained in:
parent
b0ecc8b077
commit
03a27fab5d
2 changed files with 21 additions and 1 deletions
|
@ -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
19
static/js/reloadButton.js
Normal 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;
|
||||
|
||||
};
|
Loading…
Reference in a new issue