From b1c5a76e0d3220143c2730a6a4eba5d2623b1b6b Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 4 Nov 2011 12:24:54 +0100 Subject: [PATCH] set ui._list not only if showing home screen --- static/js/pandora.js | 4 +--- static/js/pandora/URL.js | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/static/js/pandora.js b/static/js/pandora.js index de98147a7..0808c8137 100644 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -115,7 +115,6 @@ appPanel loadingScreen.style.backgroundColor = theme == 'classic' ? 'rgb(224, 224, 224)' : 'rgb(32, 32, 32)'; loadingScreen.style.zIndex = '1001'; - Ox.print(images) loadingScreen.appendChild(images.logo); loadingScreen.appendChild(images.reflection); loadingScreen.appendChild(gradient); @@ -138,7 +137,7 @@ appPanel theme: theme }, Geo: {} - }, callback) + }, callback); } function loadPandora(browserSupported) { @@ -237,7 +236,6 @@ appPanel }) : null; }) }); - pandora.site.listSettings = {}; Ox.map(pandora.site.user.ui, function(val, key) { if (/^list[A-Z]/.test(key)) { diff --git a/static/js/pandora/URL.js b/static/js/pandora/URL.js index 36b177813..4dfcd3a89 100644 --- a/static/js/pandora/URL.js +++ b/static/js/pandora/URL.js @@ -115,6 +115,7 @@ pandora.URL = (function() { Ox.print('SET STATE:', state) var find, previousUI = pandora.UI.getPrevious(); + 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); @@ -122,9 +123,6 @@ pandora.URL = (function() { if (pandora.user.ui.showHome) { pandora.$ui.home = pandora.ui.home().showScreen(); - 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); } else { /* pandora.UI.set({