Switch to a local external.js file.
authorLeif Hanson <leif@gaslightmedia.com>
Mon, 9 Sep 2013 15:47:43 +0000 (15:47 +0000)
committerLeif Hanson <leif@gaslightmedia.com>
Mon, 9 Sep 2013 15:47:43 +0000 (15:47 +0000)
libjs/external.js

index 00d8461..8ad9e21 100755 (executable)
@@ -18,7 +18,7 @@ $('a').each(function() {
         && ($(this).attr('href') != "#")
         && ($(this).attr('href') != "")
         && ($(this).attr('href') != null)
-        && (window.location.host.indexOf($(this).attr('href')) >= 0)
+        && ($(this).attr('href').indexOf(window.location.host) >= 0)
    ) {
        $(this).click(function(event) {
            event.preventDefault();