From a8039370e52469be9a2d0c3b02c3728a8dd2ed25 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 9 Jul 2013 09:05:24 +0000 Subject: [PATCH] app panel no longer opens home screen on load --- static/js/pandora/appPanel.js | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/static/js/pandora/appPanel.js b/static/js/pandora/appPanel.js index d8560c378..560e9be1e 100644 --- a/static/js/pandora/appPanel.js +++ b/static/js/pandora/appPanel.js @@ -47,11 +47,8 @@ pandora.ui.appPanel = function() { api: ['api'] }; if (page === '') { - if (!pandora.$ui.appPanel) { - // if we're on page load, show home screen - pandora.$ui.home = pandora.ui.home().showScreen(); - } else { - // otherwise, remove home screen + if (pandora.$ui.appPanel && pandora.$ui.home) { + // unless we're on page load, remove home screen pandora.$ui.home.fadeOutScreen(); } Ox.forEach(dialogPages, function(pages, dialog) { @@ -64,11 +61,12 @@ pandora.ui.appPanel = function() { pandora.$ui.tv.fadeOutScreen(); } } else if (page == 'home') { - // if we're on page load, show screen immediately - pandora.$ui.home = pandora.ui.home()[ - !pandora.$ui.appPanel ? 'showScreen' : 'fadeInScreen' - ](); + if (pandora.$ui.appPanel) { + // unless we're on page load, show home screen + pandora.$ui.home = pandora.ui.home().fadeInScreen(); + } } else if (page == 'tv') { + // if we're on page load, show tv immediately pandora.$ui.tv = pandora.ui.tv()[ !pandora.$ui.appPanel ? 'showScreen' : 'fadeInScreen' ]();