add 'reload application' option to debug menu

This commit is contained in:
rolux 2011-10-26 20:45:12 +00:00
parent b494370bd0
commit 635b836c7f
2 changed files with 7 additions and 7 deletions

View file

@ -626,10 +626,7 @@ pandora.ui.infoView = function(data) {
type: 'image' type: 'image'
}) })
.addClass('OxColor OxColorGradient') .addClass('OxColor OxColorGradient')
.css({ .css({background: $element.css('background')})
background: $element.css('background'),
color: $element.css('color')
})
.css('margin' + (canEdit ? 'Left' : 'Right'), '4px') .css('margin' + (canEdit ? 'Left' : 'Right'), '4px')
.data({OxColor: $element.data('OxColor')}) .data({OxColor: $element.data('OxColor')})
.appendTo($line); .appendTo($line);

View file

@ -141,7 +141,8 @@ pandora.ui.mainMenu = function() {
pandora.site.capabilities.canSeeDebugMenu[pandora.user.level] pandora.site.capabilities.canSeeDebugMenu[pandora.user.level]
? [ ? [
{ id: 'debugMenu', title: 'Debug', items: [ { 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'} { id: 'resetui', title: 'Reset UI Settings'}
] } ] }
] ]
@ -248,12 +249,14 @@ pandora.ui.mainMenu = function() {
groups: pandora.site.user.ui.groups groups: pandora.site.user.ui.groups
}); });
pandora.$ui.contentPanel.replaceElement(0, pandora.$ui.browser = pandora.ui.browser()); 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') { } else if (data.id == 'resetui') {
pandora.api.resetUI({}, function() { pandora.api.resetUI({}, function() {
pandora.$ui.appPanel.reload(); pandora.$ui.appPanel.reload();
}); });
} else if (data.id == 'clearcache') {
Ox.Request.clearCache();
} }
}, },
pandora_find: function() { pandora_find: function() {