From 831f3c81550276e2fe5015f61c34aa65fad7cd7a Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 2 Nov 2011 20:53:21 +0000 Subject: [PATCH] fix for fullscreen vs. back button --- static/js/pandora/URL.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/static/js/pandora/URL.js b/static/js/pandora/URL.js index e6c76e6b..d1ed0539 100644 --- a/static/js/pandora/URL.js +++ b/static/js/pandora/URL.js @@ -344,6 +344,14 @@ pandora.URL = (function() { window.onpopstate = function(e) { Ox.Request.cancel(); 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)) { Ox.print('E.STATE', e.state) document.title = e.state.title;