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 0a720be7..5a90f789 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 = $('