dont resize embed, hook up open on site event

This commit is contained in:
j 2013-02-20 11:04:33 +00:00
parent 110078ec9a
commit de30bf5a44
2 changed files with 14 additions and 4 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

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