remove tv when going to dialog from home, hide volume control when going to tv from home (fixes #1794)
This commit is contained in:
parent
4f11636623
commit
1de58ea400
6 changed files with 9 additions and 7 deletions
|
@ -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);
|
||||
|
|
|
@ -282,7 +282,7 @@ pandora.ui.home = function() {
|
|||
that.animate({opacity: 0}, 500, function() {
|
||||
that.remove();
|
||||
});
|
||||
pandora.$ui.tv && pandora.$ui.tv.unmute();
|
||||
pandora.$ui.tv && pandora.$ui.tv.unmute().find('.OxControls.OxVolume').hide();
|
||||
return that;
|
||||
};
|
||||
|
||||
|
|
|
@ -690,7 +690,7 @@ pandora.ui.home = function() {
|
|||
that.animate({opacity: 0}, 500, function() {
|
||||
that.remove();
|
||||
});
|
||||
pandora.$ui.tv && pandora.$ui.tv.unmute();
|
||||
pandora.$ui.tv && pandora.$ui.tv.unmute().find('.OxControls.OxVolume').hide();
|
||||
self.keydown && Ox.$document.off({keydown: self.keydown});
|
||||
return that;
|
||||
};
|
||||
|
|
|
@ -265,7 +265,7 @@ pandora.ui.home = function() {
|
|||
that.animate({opacity: 0}, 500, function() {
|
||||
that.remove();
|
||||
});
|
||||
pandora.$ui.tv && pandora.$ui.tv.unmute();
|
||||
pandora.$ui.tv && pandora.$ui.tv.unmute().find('.OxControls.OxVolume').hide();
|
||||
return that;
|
||||
};
|
||||
|
||||
|
|
|
@ -662,7 +662,7 @@ pandora.ui.home = function() {
|
|||
that.animate({opacity: 0}, 500, function() {
|
||||
that.remove();
|
||||
});
|
||||
pandora.$ui.tv && pandora.$ui.tv.unmute();
|
||||
pandora.$ui.tv && pandora.$ui.tv.unmute().find('.OxControls.OxVolume').hide();
|
||||
self.keydown && Ox.$document.off({keydown: self.keydown});
|
||||
return that;
|
||||
};
|
||||
|
|
|
@ -174,6 +174,7 @@ pandora.ui.tv = function() {
|
|||
that.mute = function() {
|
||||
muted = true;
|
||||
$player && $player.options({muted: muted});
|
||||
return that;
|
||||
};
|
||||
|
||||
that.showScreen = function() {
|
||||
|
@ -185,6 +186,7 @@ pandora.ui.tv = function() {
|
|||
that.unmute = function() {
|
||||
$player && $player.options({muted: pandora.user.ui.videoMuted});
|
||||
muted = false;
|
||||
return that;
|
||||
};
|
||||
|
||||
return that;
|
||||
|
|
Loading…
Reference in a new issue