From 116d37d297c3f0a4b09752faea12db3a37c507f3 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 20 Feb 2013 23:49:44 +0530 Subject: [PATCH] update embed panel --- static/js/pandora/embedPanel.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/embedPanel.js b/static/js/pandora/embedPanel.js index da70aca46..faf0c04cc 100644 --- a/static/js/pandora/embedPanel.js +++ b/static/js/pandora/embedPanel.js @@ -41,7 +41,7 @@ pandora.ui.embedPanel = function() { censoredIcon: pandora.site.cantPlay.icon, censoredTooltip: pandora.site.cantPlay.text, controlsBottom: ['play', 'volume', 'scale'].concat( - Ox.Fullscreen.available ? ['fullscreen'] : [] + Ox.Fullscreen.available && options.showCloseButton ? ['fullscreen'] : [] ).concat( ['timeline', 'position', 'settings'] ), @@ -49,7 +49,11 @@ pandora.ui.embedPanel = function() { close: 'Close', open: 'Watch on ' + pandora.site.site.name }, - controlsTop: (options.showCloseButton ? ['close'] : []).concat( + controlsTop: [ + options.showCloseButton ? 'close' + : Ox.Fullscreen.available ? 'fullscreen' + : 'space16' + ].concat( ['title', 'open'] ), duration: video.duration,