fix errors when signing in or out
This commit is contained in:
parent
c63677fd1f
commit
41f6ca478c
2 changed files with 43 additions and 38 deletions
|
@ -52,6 +52,7 @@ pandora.ui.accountDialogOptions = function(action, value) {
|
|||
title: 'Cancel'
|
||||
}).bindEvent('click', function() {
|
||||
pandora.$ui.accountDialog.close();
|
||||
pandora.URL.update();
|
||||
});
|
||||
} else if (type == 'submit') {
|
||||
return Ox.Button({
|
||||
|
@ -311,7 +312,7 @@ pandora.ui.accountSignoutDialog = function() {
|
|||
title: 'Cancel'
|
||||
}).bindEvent('click', function() {
|
||||
that.close();
|
||||
pandora.$ui.mainMenu.getItem('signinsignout').toggleTitle();
|
||||
pandora.URL.update();
|
||||
}),
|
||||
Ox.Button({
|
||||
id: 'signout',
|
||||
|
|
|
@ -632,7 +632,9 @@ pandora.isClipView = function(view, item) {
|
|||
|
||||
pandora.signin = function(data) {
|
||||
pandora.user = data.user;
|
||||
pandora.Query.updateGroups();
|
||||
pandora.user.ui._list = pandora.getListsState(pandora.user.ui.find);
|
||||
pandora.user.ui._groupsState = pandora.getGroupsState(pandora.user.ui.find);
|
||||
pandora.user.ui._findState = pandora.getFindState(pandora.user.ui.find);
|
||||
Ox.Theme(pandora.user.ui.theme);
|
||||
pandora.UI.set({find: pandora.user.ui.find})
|
||||
pandora.$ui.appPanel.reload();
|
||||
|
@ -640,7 +642,9 @@ pandora.signin = function(data) {
|
|||
|
||||
pandora.signout = function(data) {
|
||||
pandora.user = data.user;
|
||||
pandora.Query.updateGroups();
|
||||
pandora.user.ui._list = pandora.getListsState(pandora.user.ui.find);
|
||||
pandora.user.ui._groupsState = pandora.getGroupsState(pandora.user.ui.find);
|
||||
pandora.user.ui._findState = pandora.getFindState(pandora.user.ui.find);
|
||||
Ox.Theme(pandora.site.user.ui.theme);
|
||||
pandora.UI.set({find: pandora.user.ui.find})
|
||||
pandora.$ui.appPanel.reload();
|
||||
|
@ -738,7 +742,7 @@ pandora.selectList = function() {
|
|||
|
||||
(function() {
|
||||
|
||||
// Note: getFindState has to run after getListState and getGroupsState
|
||||
// Note: getFindState has to run after getListsState and getGroupsState
|
||||
|
||||
function everyCondition(conditions, key, operator) {
|
||||
// If every condition has the given key and operator
|
||||
|
|
Loading…
Reference in a new issue