Make sure res link doesn't open new window
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 20 Feb 2015 15:28:04 +0000 (10:28 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 20 Feb 2015 15:28:04 +0000 (10:28 -0500)
update the external.js file in js/custom

js/app.js
js/custom/external.js

index 095b1a1..d7d2096 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -13,8 +13,6 @@ d=c?e.S(c).closest("["+this.attr_name()+"]"):e.S("["+this.attr_name()+"]");var f
 
 $('a').each(function() {
    var urlPattern = new RegExp('/' + window.location.host + '/');
-   //console.log($(this).attr('href'));
-   //console.log($(this).attr('href').indexOf("javascript"));
    if(     !urlPattern.test(this.href)
         && !$(this).hasClass('thickbox')
         && !$(this).hasClass('colorbox')
@@ -23,6 +21,7 @@ $('a').each(function() {
         && !$(this).hasClass('photoimg')
         && ($(this).attr('href') != "#")
         && ($(this).attr('href') != "")
+        && ($(this).attr('href') != "https://reservations.troutcreek.com/irmnet/res/resmain.aspx")
         && ($(this).attr('href') != null)
         && ($(this).attr('href').indexOf("javascript") == -1)
    ) {
@@ -32,7 +31,8 @@ $('a').each(function() {
            window.open(this.href, '_blank');
        });
    }
-});;// Load foundation
+});
+;// Load foundation
 $(document).foundation();
 $(document).ready(function () {
     //$('ul.children').each(function () {
index 22d4a08..9b7c4ab 100755 (executable)
@@ -5,8 +5,6 @@
 
 $('a').each(function() {
    var urlPattern = new RegExp('/' + window.location.host + '/');
-   //console.log($(this).attr('href'));
-   //console.log($(this).attr('href').indexOf("javascript"));
    if(     !urlPattern.test(this.href)
         && !$(this).hasClass('thickbox')
         && !$(this).hasClass('colorbox')
@@ -15,6 +13,7 @@ $('a').each(function() {
         && !$(this).hasClass('photoimg')
         && ($(this).attr('href') != "#")
         && ($(this).attr('href') != "")
+        && ($(this).attr('href') != "https://reservations.troutcreek.com/irmnet/res/resmain.aspx")
         && ($(this).attr('href') != null)
         && ($(this).attr('href').indexOf("javascript") == -1)
    ) {
@@ -24,4 +23,4 @@ $('a').each(function() {
            window.open(this.href, '_blank');
        });
    }
-});
\ No newline at end of file
+});