From 794123afb5b10b540ee7ff9af8eaf7008f573e36 Mon Sep 17 00:00:00 2001 From: Leif Hanson Date: Mon, 9 Sep 2013 15:51:24 +0000 Subject: [PATCH] Switch to a local external.js file. --- libjs/external.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libjs/external.js b/libjs/external.js index 08ddf63..2919d53 100755 --- a/libjs/external.js +++ b/libjs/external.js @@ -8,7 +8,7 @@ $('a').each(function() { var urlPattern = new RegExp('/' + window.location.host + '/'); console.log(window.location.host); console.log(this.href); - console.log(window.location.host.indexOf($(this).attr('href')) + "\n\n"); + console.log(this.href.indexOf(window.location.host + "\n\n"); if( !urlPattern.test(this.href) && !$(this).hasClass('thickbox') && !$(this).hasClass('colorbox') -- 2.17.1