From 81ec62802a1eeed1715e89411afcd57cf0e6be39 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 12 Feb 2013 12:56:13 +0530 Subject: [PATCH] fix embed player w/o in/out --- static/js/embed/pandora.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/static/js/embed/pandora.js b/static/js/embed/pandora.js index ee5d7dd79..2fe2e8133 100755 --- a/static/js/embed/pandora.js +++ b/static/js/embed/pandora.js @@ -54,7 +54,7 @@ Ox.load('UI', { video: data.video, width: window.innerWidth }) - .bindEvent({ + .bindEvent(Ox.extend({ open: function() { pandora.$player.options({paused: true}); var url = document.location.protocol @@ -63,15 +63,16 @@ Ox.load('UI', { + Ox.formatDuration(pandora.$player.options('position')); window.open(url, '_blank'); }, - playing: checkRange, - position: checkRange, resolution: function(data) { pandora.api.setUI({'videoResolution': data.resolution}); }, fullscreen: function(data) { Ox.Fullscreen.toggle(); } - }) + }, options['in'] || options.out ? { + playing: checkRange, + position: checkRange + } : {})) ); Ox.UI.hideLoadingScreen();