forked from 0x2620/pandora
add clear cache to debug menu
This commit is contained in:
parent
b5a6285330
commit
fa55fd7af2
1 changed files with 4 additions and 1 deletions
|
@ -153,7 +153,8 @@ pandora.ui.mainMenu = function() {
|
|||
] },
|
||||
{ id: 'debugMenu', title: 'Debug', items: [
|
||||
{ id: 'query', title: 'Show pandora.Query' },
|
||||
{ id: 'resetui', title: 'Reset UI Settings'}
|
||||
{ id: 'resetui', title: 'Reset UI Settings'},
|
||||
{ id: 'clearcache', title: 'Clear cache'}
|
||||
] },
|
||||
{ id: 'testMenu', title: 'Test', items: [
|
||||
{ group: 'foogroup', items: [
|
||||
|
@ -722,6 +723,8 @@ pandora.ui.mainMenu = function() {
|
|||
pandora.api.resetUI({}, function() {
|
||||
pandora.$ui.appPanel.reload();
|
||||
});
|
||||
} else if (data.id == 'clearcache') {
|
||||
Ox.Request.clearCache();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue