]> git.openstreetmap.org Git - osqa.git/commitdiff
OSQA-763, bugfix, all domains that contained youtube.com at the end were opened at...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Sun, 2 Oct 2011 13:14:35 +0000 (13:14 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Sun, 2 Oct 2011 13:14:35 +0000 (13:14 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1181 0cfe37f9-358a-4d5e-be75-b63607b5c754

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