diff --git a/static/js/pandora.js b/static/js/pandora.js index c36113f26..f355d2b0d 100644 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -221,7 +221,9 @@ appPanel .on({ beforeunload: pandora.beforeunloadWindow, resize: function() { - pandora.resizeWindow(); + if (!isEmbed) { + pandora.resizeWindow(); + } }, unload: pandora.unloadWindow }) diff --git a/static/js/pandora/embedPanel.js b/static/js/pandora/embedPanel.js index 359f0b700..1200207cc 100644 --- a/static/js/pandora/embedPanel.js +++ b/static/js/pandora/embedPanel.js @@ -109,6 +109,17 @@ pandora.ui.embedPanel = function() { out: options.out } : {})) .bindEvent({ + fullscreen: function(data) { + Ox.Fullscreen.toggle(); + }, + open: function() { + $player.options({paused: true}); + var url = document.location.protocol + '//' + + document.location.hostname + '/' + + options.item + '/' + + Ox.formatDuration($player.options('position')); + window.open(url, '_blank'); + }, playing: function(data) { setPosition(data.position, true); }, @@ -119,9 +130,6 @@ pandora.ui.embedPanel = function() { $timeline.options({ subtitles: data.subtitles ? video.subtitles : [] }); - }, - fullscreen: function(data) { - Ox.Fullscreen.toggle(); } });