From dfd3a4481ff4a4d8cbd229417beced7433148231 Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 19 Feb 2012 11:39:39 +0000 Subject: [PATCH] fixing a regression regarding navigating away from home screen (fixes #527) --- static/js/pandora/home.js | 4 +++- static/js/pandora/home.padma.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/home.js b/static/js/pandora/home.js index 4d10d03c..0fef1542 100644 --- a/static/js/pandora/home.js +++ b/static/js/pandora/home.js @@ -137,7 +137,9 @@ pandora.ui.home = function() { }) .bindEvent({ click: function() { - pandora.UI.set({page: pandora.user.ui.page}); + pandora.UI.set({ + page: pandora.user.ui.page == 'home' ? '' : pandora.user.ui.page + }); that.fadeOutScreen(); } }) diff --git a/static/js/pandora/home.padma.js b/static/js/pandora/home.padma.js index 0b40f561..e49fe090 100644 --- a/static/js/pandora/home.padma.js +++ b/static/js/pandora/home.padma.js @@ -145,7 +145,9 @@ pandora.ui.home = function() { }) .bindEvent({ click: function() { - pandora.UI.set({page: pandora.user.ui.page}); + pandora.UI.set({ + page: pandora.user.ui.page == 'home' ? '' : pandora.user.ui.page + }); that.fadeOutScreen(); } })