forked from 0x2620/pandora
debug menu: reorder entries
This commit is contained in:
parent
9f45aa2e2b
commit
63e1158299
1 changed files with 3 additions and 3 deletions
|
@ -207,9 +207,9 @@ pandora.ui.mainMenu = function() {
|
||||||
pandora.site.capabilities.canSeeDebugMenu[pandora.user.level]
|
pandora.site.capabilities.canSeeDebugMenu[pandora.user.level]
|
||||||
? [
|
? [
|
||||||
{ id: 'debugMenu', title: Ox._('Debug'), items: [
|
{ id: 'debugMenu', title: Ox._('Debug'), items: [
|
||||||
{ id: 'cache', title: Ox._((pandora.localStorage('enableCache') !== false ? 'Disable' : 'Enable') + ' Cache')},
|
|
||||||
{ id: 'clearcache', title: Ox._('Clear Cache')},
|
{ id: 'clearcache', title: Ox._('Clear Cache')},
|
||||||
{},
|
{},
|
||||||
|
{ id: 'cache', title: Ox._((pandora.localStorage('enableCache') !== false ? 'Disable' : 'Enable') + ' Cache')},
|
||||||
{ id: 'debugmode', title: Ox._((pandora.localStorage('enableDebugMode') ? 'Disable' : 'Enable') + ' Debug Mode') },
|
{ id: 'debugmode', title: Ox._((pandora.localStorage('enableDebugMode') ? 'Disable' : 'Enable') + ' Debug Mode') },
|
||||||
{ id: 'eventlogging', title: Ox._((pandora.localStorage('enableEventLogging') ? 'Disable' : 'Enable') + ' Event Logging')},
|
{ id: 'eventlogging', title: Ox._((pandora.localStorage('enableEventLogging') ? 'Disable' : 'Enable') + ' Event Logging')},
|
||||||
{},
|
{},
|
||||||
|
@ -460,14 +460,14 @@ pandora.ui.mainMenu = function() {
|
||||||
pandora.$ui.usersDialog = pandora.ui.usersDialog().open();
|
pandora.$ui.usersDialog = pandora.ui.usersDialog().open();
|
||||||
} else if (data.id == 'statistics') {
|
} else if (data.id == 'statistics') {
|
||||||
pandora.$ui.statisticsDialog = pandora.ui.statisticsDialog().open();
|
pandora.$ui.statisticsDialog = pandora.ui.statisticsDialog().open();
|
||||||
|
} else if (data.id == 'clearcache') {
|
||||||
|
Ox.Request.clearCache();
|
||||||
} else if (data.id == 'cache') {
|
} else if (data.id == 'cache') {
|
||||||
var enabled = pandora.localStorage('enableCache') === false;
|
var enabled = pandora.localStorage('enableCache') === false;
|
||||||
pandora.localStorage('enableCache', enabled);
|
pandora.localStorage('enableCache', enabled);
|
||||||
Ox.Request.options({cache: enabled})
|
Ox.Request.options({cache: enabled})
|
||||||
that.setItemTitle('cache', Ox._((enabled ? 'Disable' : 'Enable') + ' Cache'));
|
that.setItemTitle('cache', Ox._((enabled ? 'Disable' : 'Enable') + ' Cache'));
|
||||||
that[enabled ? 'enableItem' : 'disableItem']('clearcache');
|
that[enabled ? 'enableItem' : 'disableItem']('clearcache');
|
||||||
} else if (data.id == 'clearcache') {
|
|
||||||
Ox.Request.clearCache();
|
|
||||||
} else if (data.id == 'debugmode') {
|
} else if (data.id == 'debugmode') {
|
||||||
if (pandora.localStorage('enableDebugMode')) {
|
if (pandora.localStorage('enableDebugMode')) {
|
||||||
pandora.localStorage['delete']('enableDebugMode');
|
pandora.localStorage['delete']('enableDebugMode');
|
||||||
|
|
Loading…
Reference in a new issue