remove tv when going to dialog from home, hide volume control when going to tv from home (fixes #1794)

This commit is contained in:
rolux 2013-08-10 08:58:22 +00:00
commit 1de58ea400
6 changed files with 9 additions and 7 deletions

View file

@ -59,9 +59,7 @@ pandora.ui.appPanel = function() {
pandora.$ui[dialog + 'Dialog'].close();
}
});
if (pandora.$ui.tv) {
pandora.$ui.tv.fadeOutScreen();
}
pandora.$ui.tv && pandora.$ui.tv.fadeOutScreen();
} else if (page == 'home') {
if (pandora.$ui.appPanel) {
// unless we're on page load, show home screen
@ -81,6 +79,8 @@ pandora.ui.appPanel = function() {
pandora.$ui[dialog + 'Dialog'].close();
}
});
// remove tv (may be active behind home screen)
pandora.$ui.tv && pandora.$ui.tv.remove();
if (Ox.getIndexById(pandora.site.sitePages, page) > -1 || page == 'software') {
if (pandora.$ui.siteDialog && pandora.$ui.siteDialog.is(':visible')) {
pandora.$ui.siteDialog.select(page);