fix a bug in the url controller where under certain conditions, setting a new list view on page load would not register

This commit is contained in:
rolux 2011-10-19 11:42:50 +00:00
parent e53c6dfef3
commit 0b2a068697
2 changed files with 2 additions and 2 deletions

View file

@ -33,6 +33,7 @@ pandora.UI = (function() {
}
Ox.print('UI SET', args)
self.previousUI = Ox.clone(pandora.user.ui, true);
self.previousUI._list = pandora.getListsState(self.previousUI.find);
if ('find' in args) {
// the challenge here is that find may change list,
// and list may then change listSort and listView,
@ -101,7 +102,6 @@ pandora.UI = (function() {
return key.replace(/\n/g, '.')
}),
ui = pandora.user.ui;
Ox.print(key, '......', keys)
while (keys.length > 1) {
ui = ui[keys.shift()];
}

View file

@ -5,7 +5,7 @@ pandora.URL = (function() {
var self = {}, that = {};
function getState(keys) {
Ox.print('KEYS', keys)
Ox.print('GET STATE, UI', pandora.user.ui)
var state = {};
/*
if (keys.indexOf('type') > -1) {