This commit is contained in:
rolux 2013-02-20 16:41:05 +05:30
commit bed9f39909
2 changed files with 11 additions and 1 deletions

View file

@ -221,7 +221,9 @@ appPanel
.on({
beforeunload: pandora.beforeunloadWindow,
resize: function() {
pandora.resizeWindow();
if (!isEmbed) {
pandora.resizeWindow();
}
},
unload: pandora.unloadWindow
})

View file

@ -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);
},