From: Anthony Talarico Date: Tue, 22 Dec 2015 21:15:14 +0000 (-0500) Subject: fixing syntax error X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=aeda0cc48d61b65e883d94c6d622b34c7aa066f0;p=WP-Themes%2Fmichsci.git fixing syntax error --- diff --git a/js/app.js b/js/app.js index c1b0fec..b7eede0 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("products") >= 0)){ + if ((window.location.href.indexOf("product-2") >= 0)){ $("#gridView").css("display", "none"); $("#listView").css("display", "none"); $("#grid").on("click", function (e) { @@ -35,7 +35,7 @@ $(document).ready(function () { location.reload(); }); } - if ((window.location.href.indexOf("products/?michsci_category") >= 0)){ + if ((window.location.href.indexOf("products-2/?michsci_category") >= 0)){ $("#productsView").css("display", "inherit"); $("#categoriesView").css("display", "none"); $("#gridView").css("display", "inherit"); @@ -58,7 +58,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(); @@ -71,6 +71,4 @@ $(document).ready(function () { $("#categoryDropdown").change(function() { $("#catSubmit").submit(); }); - - }); diff --git a/js/custom/upcp.js b/js/custom/upcp.js index 7f6bc85..31c439d 100644 --- a/js/custom/upcp.js +++ b/js/custom/upcp.js @@ -51,6 +51,4 @@ $(document).ready(function () { $("#categoryDropdown").change(function() { $("#catSubmit").submit(); }); - - });