From 0b2a068697f862825f85778cb07aa0fc3609767c Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 19 Oct 2011 11:42:50 +0000 Subject: [PATCH] fix a bug in the url controller where under certain conditions, setting a new list view on page load would not register --- static/js/pandora/UI.js | 2 +- static/js/pandora/URL.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/UI.js b/static/js/pandora/UI.js index a2b19a7e4..d3c41ddea 100644 --- a/static/js/pandora/UI.js +++ b/static/js/pandora/UI.js @@ -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()]; } diff --git a/static/js/pandora/URL.js b/static/js/pandora/URL.js index 0dcb382d6..30f3f4f33 100644 --- a/static/js/pandora/URL.js +++ b/static/js/pandora/URL.js @@ -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) {