From c36dc677f50f559828b520d6e3447407d84f6c4e Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 26 Apr 2013 10:43:46 +0200 Subject: [PATCH] clean up embedVideoDialog --- .../{embedDialog.js => embedVideoDialog.js} | 83 +++++++++---------- 1 file changed, 37 insertions(+), 46 deletions(-) rename static/js/pandora/{embedDialog.js => embedVideoDialog.js} (52%) diff --git a/static/js/pandora/embedDialog.js b/static/js/pandora/embedVideoDialog.js similarity index 52% rename from static/js/pandora/embedDialog.js rename to static/js/pandora/embedVideoDialog.js index 0a720be7b..5a90f7891 100644 --- a/static/js/pandora/embedDialog.js +++ b/static/js/pandora/embedVideoDialog.js @@ -1,11 +1,40 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript 'use strict'; -pandora.ui.embedDialog = function(data) { +pandora.ui.embedVideoDialog = function() { - var content = Ox.Element().css({margin: '16px'}), + var width = 640, height = 360, - width = 640, + url = document.location.href + ( + document.location.hash ? '?embed=true' : '#?embed=true' + ), + + $content = Ox.Element() + .css({margin: '16px'}) + .html('To embed this clip, use the following HTML:
'), + + $embed = $('