From: Anthony Talarico Date: Tue, 22 Dec 2015 21:18:21 +0000 (-0500) Subject: fixing syntax error X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=15e480256009803ac69a134f34d4228010bb7dc3;p=WP-Themes%2Fmichsci.git fixing syntax error --- diff --git a/js/app.js b/js/app.js index b7eede0..ed47b90 100644 --- a/js/app.js +++ b/js/app.js @@ -23,7 +23,7 @@ $(document).ready(function () { "use strict"; // don't display products on the main "products page" - if ((window.location.href.indexOf("product-2") >= 0)){ + if ((window.location.href.indexOf("products-2") >= 0)){ $("#gridView").css("display", "none"); $("#listView").css("display", "none"); $("#grid").on("click", function (e) { diff --git a/js/custom/upcp.js b/js/custom/upcp.js index 31c439d..cd8b62d 100644 --- a/js/custom/upcp.js +++ b/js/custom/upcp.js @@ -3,7 +3,7 @@ $(document).ready(function () { "use strict"; // don't display products on the main "products page" - if ((window.location.href.indexOf("product-2") >= 0)){ + if ((window.location.href.indexOf("products-2") >= 0)){ $("#gridView").css("display", "none"); $("#listView").css("display", "none"); $("#grid").on("click", function (e) {