From: Leif Hanson Date: Mon, 9 Sep 2013 15:43:23 +0000 (+0000) Subject: Switch to a local external.js file. X-Git-Tag: v1.0~48 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=4be5ba98d0020887d0fb1c49ed7832fcf11eed2c;p=web%2FMichiganTrailMaps.git Switch to a local external.js file. --- diff --git a/libjs/external.js b/libjs/external.js index 09d70c1..ab6ef2c 100755 --- a/libjs/external.js +++ b/libjs/external.js @@ -17,8 +17,7 @@ $('a').each(function() { && ($(this).attr('href') != "#") && ($(this).attr('href') != "") && ($(this).attr('href') != null) - && (window.location.host != "dev53.gaslightmedia.com") - && (window.location.host != "dev53") + && (window.location.host.indexOf($(this).attr('href')) >= 0) ) { $(this).click(function(event) { event.preventDefault();