From cb6100020e02fbddbdce3f423263aa759397028b Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 25 Jun 2012 16:49:39 +0200 Subject: [PATCH] default embed mode should be player --- static/js/embed/pandora.js | 2 +- static/js/pandora/embedDialog.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/embed/pandora.js b/static/js/embed/pandora.js index 79dc5758..26fe446c 100755 --- a/static/js/embed/pandora.js +++ b/static/js/embed/pandora.js @@ -77,7 +77,7 @@ Ox.load('UI', { videoFormat: Ox.UI.getVideoFormat(pandora.site.video.formats) }); var options = parseQuery(); - if (options.view == 'video') { + if (['video', 'player'].indexOf(options.view) > -1) { pandora.ui.info = pandora.clip(options) .css({width: '100%', height: '100%'}) .appendTo(document.body); diff --git a/static/js/pandora/embedDialog.js b/static/js/pandora/embedDialog.js index a4b781d8..0b2e6e91 100644 --- a/static/js/pandora/embedDialog.js +++ b/static/js/pandora/embedDialog.js @@ -32,7 +32,7 @@ pandora.ui.embedDialog = function(data) { } }); - data.view = 'video'; + data.view = 'player'; content.html('To embed this video use this code on your page:
'); content.append(