From e0fb7d3739778eb9c09b811e28f0caf6055a9e50 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 21 Dec 2015 13:36:21 -0500 Subject: [PATCH] fixed location host variable --- js/app.js | 4 ++-- js/custom/upcp.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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(); -- 2.17.1