From 6231e98840a9efee71a66d611c2fcc4137f41795 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 25 Feb 2013 10:45:55 +0530 Subject: [PATCH] embed panel: allow for single frame embed --- static/js/pandora/embedPanel.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/embedPanel.js b/static/js/pandora/embedPanel.js index 13d8d4a06..746225c84 100644 --- a/static/js/pandora/embedPanel.js +++ b/static/js/pandora/embedPanel.js @@ -42,7 +42,11 @@ pandora.ui.embedPanel = function() { censored: video.censored, censoredIcon: pandora.site.cantPlay.icon, censoredTooltip: pandora.site.cantPlay.text, - controlsBottom: ['play', 'volume', 'scale'].concat( + controlsBottom: ( + options['in'] == options.out ? [] : ['play', 'volume'] + ).concat( + ['scale'] + ).concat( Ox.Fullscreen.available && options.showCloseButton ? ['fullscreen'] : [] ).concat( ['timeline', 'position', 'settings'] @@ -307,6 +311,8 @@ pandora.ui.embedPanel = function() { } if (!options['in'] && !options.out) { options.playInToOut = false; + } else if (options['in'] == options.out) { + options.invertHighlight = false; } return options; }