From b9620d0d11634745a299fdae6b6964a41fef9af9 Mon Sep 17 00:00:00 2001 From: Leif Hanson Date: Mon, 9 Sep 2013 15:47:43 +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 00d8461..8ad9e21 100755 --- a/libjs/external.js +++ b/libjs/external.js @@ -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(); -- 2.17.1