From fa55fd7af22522da0e56f62c7535e83e60535ddb Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 11 Aug 2011 19:28:44 +0200 Subject: [PATCH] add clear cache to debug menu --- static/js/pandora/ui/menu.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/ui/menu.js b/static/js/pandora/ui/menu.js index 9230bc3e6..5aa7540ad 100644 --- a/static/js/pandora/ui/menu.js +++ b/static/js/pandora/ui/menu.js @@ -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(); } } });