forked from 0x2620/pandora
add 'reload application' option to debug menu
This commit is contained in:
parent
b494370bd0
commit
635b836c7f
2 changed files with 7 additions and 7 deletions
|
@ -626,10 +626,7 @@ pandora.ui.infoView = function(data) {
|
|||
type: 'image'
|
||||
})
|
||||
.addClass('OxColor OxColorGradient')
|
||||
.css({
|
||||
background: $element.css('background'),
|
||||
color: $element.css('color')
|
||||
})
|
||||
.css({background: $element.css('background')})
|
||||
.css('margin' + (canEdit ? 'Left' : 'Right'), '4px')
|
||||
.data({OxColor: $element.data('OxColor')})
|
||||
.appendTo($line);
|
||||
|
|
|
@ -141,7 +141,8 @@ pandora.ui.mainMenu = function() {
|
|||
pandora.site.capabilities.canSeeDebugMenu[pandora.user.level]
|
||||
? [
|
||||
{ id: 'debugMenu', title: 'Debug', items: [
|
||||
{ id: 'clearcache', title: 'Clear cache'},
|
||||
{ id: 'clearcache', title: 'Clear Cache'},
|
||||
{ id: 'reloadapplication', title: 'Reload Application'},
|
||||
{ id: 'resetui', title: 'Reset UI Settings'}
|
||||
] }
|
||||
]
|
||||
|
@ -248,12 +249,14 @@ pandora.ui.mainMenu = function() {
|
|||
groups: pandora.site.user.ui.groups
|
||||
});
|
||||
pandora.$ui.contentPanel.replaceElement(0, pandora.$ui.browser = pandora.ui.browser());
|
||||
} else if (data.id == 'clearcache') {
|
||||
Ox.Request.clearCache();
|
||||
} else if (data.id == 'reloadapplication') {
|
||||
pandora.$ui.appPanel.reload();
|
||||
} else if (data.id == 'resetui') {
|
||||
pandora.api.resetUI({}, function() {
|
||||
pandora.$ui.appPanel.reload();
|
||||
});
|
||||
} else if (data.id == 'clearcache') {
|
||||
Ox.Request.clearCache();
|
||||
}
|
||||
},
|
||||
pandora_find: function() {
|
||||
|
|
Loading…
Reference in a new issue