forked from 0x2620/pandora
make cancelling requests and clearing cache part of appPanel.reload
This commit is contained in:
parent
a8fca7f07a
commit
b0ecc8b077
3 changed files with 2 additions and 3 deletions
|
@ -26,6 +26,8 @@ pandora.ui.appPanel = function() {
|
|||
return that;
|
||||
};
|
||||
that.reload = function() {
|
||||
Ox.Request.cancel();
|
||||
Ox.Request.clearCache();
|
||||
pandora.$ui.appPanel.remove();
|
||||
pandora.$ui.appPanel = pandora.ui.appPanel().appendTo(pandora.$ui.body);
|
||||
return that;
|
||||
|
|
|
@ -421,7 +421,6 @@ pandora.ui.mainMenu = function() {
|
|||
} else if (data.id == 'clearcache') {
|
||||
Ox.Request.clearCache();
|
||||
} else if (data.id == 'reloadapplication') {
|
||||
Ox.Request.clearCache();
|
||||
pandora.$ui.appPanel.reload();
|
||||
} else if (data.id == 'debugmode') {
|
||||
if (pandora.localStorage('enableDebugMode')) {
|
||||
|
|
|
@ -1540,7 +1540,6 @@ pandora.signin = function(data) {
|
|||
pandora.URL.init();
|
||||
pandora.URL.update();
|
||||
Ox.Theme(pandora.user.ui.theme);
|
||||
Ox.Request.clearCache();
|
||||
pandora.$ui.appPanel.reload();
|
||||
};
|
||||
|
||||
|
@ -1554,7 +1553,6 @@ pandora.signout = function(data) {
|
|||
pandora.URL.init();
|
||||
pandora.URL.update();
|
||||
Ox.Theme(pandora.user.ui.theme);
|
||||
Ox.Request.clearCache();
|
||||
pandora.$ui.appPanel.reload();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue