From: Anthony Talarico Date: Mon, 21 Dec 2015 18:36:21 +0000 (-0500) Subject: fixed location host variable X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=e0fb7d3739778eb9c09b811e28f0caf6055a9e50;p=WP-Themes%2Fmichsci.git fixed location host variable --- diff --git a/js/app.js b/js/app.js index 8902fe3..abf0db5 100644 --- a/js/app.js +++ b/js/app.js @@ -23,7 +23,7 @@ $(document).ready(function () { "use strict"; // navigate back to products page if on product page - if ((window.location.href.indexOf("products/?pagename") >= 0)) { + if ((window.location.href.indexOf("products-2/?pagename") >= 0)) { // $("#viewBtns").css("display", "none"); $("#grid").on("click", function (e) { document.cookie = "view=grid"; @@ -37,7 +37,7 @@ $(document).ready(function () { // change output view - if (!(window.location.href.indexOf("products/?pagename") >= 0)) { + if (!(window.location.href.indexOf("products-2/?pagename") >= 0)) { $("#grid").on("click", function (e) { document.cookie = "view=grid"; location.reload(); diff --git a/js/custom/upcp.js b/js/custom/upcp.js index 60e611b..ab6e832 100644 --- a/js/custom/upcp.js +++ b/js/custom/upcp.js @@ -3,7 +3,7 @@ $(document).ready(function () { "use strict"; // navigate back to products page if on product page - if ((window.location.href.indexOf("products/?pagename") >= 0)) { + if ((window.location.href.indexOf("products-2/?pagename") >= 0)) { // $("#viewBtns").css("display", "none"); $("#grid").on("click", function (e) { document.cookie = "view=grid"; @@ -17,7 +17,7 @@ $(document).ready(function () { // change output view - if (!(window.location.href.indexOf("products/?pagename") >= 0)) { + if (!(window.location.href.indexOf("products-2/?pagename") >= 0)) { $("#grid").on("click", function (e) { document.cookie = "view=grid"; location.reload();