]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/media/js/youtube.js
OSQA-763, bugfix, all domains that contained youtube.com at the end were opened at...
[osqa.git] / forum / skins / default / media / js / youtube.js
index 989b55334302fa494e49aa3a7543ebb541598462..07c1fbef97844ce7921eac81f60122a5a35a2237 100644 (file)
@@ -1,6 +1,6 @@
-$().ready(function(){
+$(document).ready(function(){
     // Embed YouTube videos
-    $('a[href*="youtube.com"]').viewbox({
+    $('a[href*=".youtube.com"]').viewbox({
         widthWindow: 900
     });
 });
\ No newline at end of file