forked from 0x2620/pandora
fix for fullscreen vs. back button
This commit is contained in:
parent
2101548d74
commit
831f3c8155
1 changed files with 8 additions and 0 deletions
|
@ -344,6 +344,14 @@ pandora.URL = (function() {
|
||||||
window.onpopstate = function(e) {
|
window.onpopstate = function(e) {
|
||||||
Ox.Request.cancel();
|
Ox.Request.cancel();
|
||||||
self.isPopState = true;
|
self.isPopState = true;
|
||||||
|
if (
|
||||||
|
pandora.user.ui.item
|
||||||
|
&& pandora.user.ui.itemView == 'video'
|
||||||
|
&& pandora.$ui.player.options('fullscreen')
|
||||||
|
) {
|
||||||
|
//pandora.$ui.player.options({fullscreen: false});
|
||||||
|
$('body > .OxVideoPlayer').remove();
|
||||||
|
}
|
||||||
if (!Ox.isEmpty(e.state)) {
|
if (!Ox.isEmpty(e.state)) {
|
||||||
Ox.print('E.STATE', e.state)
|
Ox.print('E.STATE', e.state)
|
||||||
document.title = e.state.title;
|
document.title = e.state.title;
|
||||||
|
|
Loading…
Reference in a new issue