fixing a regression regarding navigating away from home screen (fixes #527)

This commit is contained in:
rolux 2012-02-19 11:39:39 +00:00
parent 8cd9e1f813
commit dfd3a4481f
2 changed files with 6 additions and 2 deletions

View file

@ -137,7 +137,9 @@ pandora.ui.home = function() {
}) })
.bindEvent({ .bindEvent({
click: function() { 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(); that.fadeOutScreen();
} }
}) })

View file

@ -145,7 +145,9 @@ pandora.ui.home = function() {
}) })
.bindEvent({ .bindEvent({
click: function() { 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(); that.fadeOutScreen();
} }
}) })