Commits

Jorge Ezequiel Diaz Marquez committed e31a27e

fix script issue #41

Comments (0)

Files changed (1)

statics/templates/base.html

         <link rel="shortcut icon" href="{{ config.MEDIA_URL }}favicon.ico" />
 
         <script type="text/javascript">
-          $("a:not([href^='/'])").filter("a:not([href^='http://cotishopfiesta'])").filter("a:not([href^='http://www.cotishopfiesta'])").attr('target', '_blank');
+          $(function(){
+            $("a:not([href^='/'])").filter("a:not([href^='http://cotishopfiesta'])").filter("a:not([href^='http://www.cotishopfiesta'])").attr('target', '_blank')
+          });
         </script>