diff --git a/static/js/pandora.js b/static/js/pandora.js index c36113f2..f355d2b0 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 ade9b946..1200207c 100644 --- a/static/js/pandora/embedPanel.js +++ b/static/js/pandora/embedPanel.js @@ -112,6 +112,14 @@ pandora.ui.embedPanel = function() { 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); },