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

index 8ad9e21..08ddf63 100755 (executable)
@@ -7,7 +7,7 @@
 $('a').each(function() {
    var urlPattern = new RegExp('/' + window.location.host + '/');
    console.log(window.location.host);
-   console.log($(this).attr('href'));
+   console.log(this.href);
    console.log(window.location.host.indexOf($(this).attr('href')) + "\n\n");
    if(     !urlPattern.test(this.href)
         && !$(this).hasClass('thickbox')
@@ -18,7 +18,7 @@ $('a').each(function() {
         && ($(this).attr('href') != "#")
         && ($(this).attr('href') != "")
         && ($(this).attr('href') != null)
-        && ($(this).attr('href').indexOf(window.location.host) >= 0)
+        && (this.href.indexOf(window.location.host) >= 0)
    ) {
        $(this).click(function(event) {
            event.preventDefault();