working around a bug where user.ui.lists is wrong on load (may be backend)
This commit is contained in:
parent
f676edb953
commit
786321136a
3 changed files with 7 additions and 3 deletions
|
@ -86,7 +86,8 @@ Ox.load({
|
|||
});
|
||||
// fixme: this should not happen
|
||||
if (!pandora.user.ui.lists[pandora.user.ui.list]) {
|
||||
pandora.user.ui.lists[pandora.user.ui.list] = pandora.user.ui.lists[''];
|
||||
Ox.print('THIS SHOULD NOT HAPPEN', pandora.site.user.ui.lists[''])
|
||||
pandora.user.ui.lists[pandora.user.ui.list] = pandora.site.user.ui.lists[''];
|
||||
}
|
||||
|
||||
if (data.user.level == 'guest' && $.browser.mozilla) {
|
||||
|
|
|
@ -226,9 +226,11 @@ pandora.Query = (function() {
|
|||
Ox.print(Ox.repeat('-', 120));
|
||||
Ox.print('STATE', data);
|
||||
Ox.print(Ox.repeat('-', 120));
|
||||
Ox.print('@@@@@', data.list, pandora.user.ui.lists[data.list])
|
||||
!pandora.user.ui.lists[data.list] && pandora.UI.set(
|
||||
'lists|' + data.list, pandora.site.user.lists['']
|
||||
'lists|' + data.list, pandora.site.user.ui.lists['']
|
||||
);
|
||||
Ox.print('@@@@@', data.lists, pandora.user.ui.lists[data.list])
|
||||
pandora.UI.set({list: data.list});
|
||||
pandora.user.ui.find = data.find;
|
||||
pandora.user.ui.groupsData = data.groups;
|
||||
|
|
|
@ -11,6 +11,7 @@ pandora.URL = (function() {
|
|||
} else {
|
||||
if (!search && pandora.user.ui.showHome) {
|
||||
pandora.$ui.home = pandora.ui.home().showScreen();
|
||||
Ox.print('LIST', pandora.user.ui.list)
|
||||
pandora.user.ui.list && pandora.Query.fromString(
|
||||
'find=list:' + pandora.user.ui.list
|
||||
);
|
||||
|
@ -54,7 +55,7 @@ pandora.URL = (function() {
|
|||
section: 'items',
|
||||
item: ''
|
||||
});
|
||||
pandora.UI.set(['lists', pandora.user.ui.list, 'listView'].join('|'), pathname);
|
||||
pandora.UI.set('lists|' + pandora.user.ui.list + '|listView', pathname);
|
||||
pandora.Query.fromString(search);
|
||||
},
|
||||
'^[0-9A-Z]': function(pathname, search) {
|
||||
|
|
Loading…
Reference in a new issue