add clear cache to debug menu

This commit is contained in:
j 2011-08-11 19:28:44 +02:00
parent 9c256cf320
commit 9c39769ee4

View file

@ -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();
}
}
});