diff --git a/js/lightbox_video.js b/js/lightbox_video.js index 8397f7bf6dd71b911ec1689569fe76164426cf66..d42495348a272862ead4b81888a764cfa96e364b 100644 --- a/js/lightbox_video.js +++ b/js/lightbox_video.js @@ -86,13 +86,20 @@ Lightvideo = { var results = pattern.exec(href); if (results !== null) { Lightbox.videoId = results[1]; - var href = "http://www.youtube.com/v/"+Lightbox.videoId; + var href = "//www.youtube.com/embed/"+Lightbox.videoId; var variables = 'fs=1'; if (Lightbox.flvFlashvars.length) { variables = variables + '&' + Lightbox.flvFlashvars; href = href + '&' + variables; } - Lightvideo.createEmbed(href, "flvvideo", "#ffffff", variables); + var id = 'flvvideo'; + Lightbox.modalHTML = ''; return true; } } @@ -210,4 +217,4 @@ Lightvideo = { }; //End jQuery block -}(jQuery)); \ No newline at end of file +}(jQuery));