add clear cache to debug menu

This commit is contained in:
j 2011-08-11 19:28:44 +02:00
parent b5a6285330
commit fa55fd7af2

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