From: Anthony Talarico Date: Tue, 22 Dec 2015 13:39:41 +0000 (-0500) Subject: added view control for list and grid view for categories X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=51e6e52a31faa7cdead3d9d92d39976be46ba543;p=WP-Themes%2Fmichsci.git added view control for list and grid view for categories --- diff --git a/js/app.js b/js/app.js index 3cc61bb..0836e04 100644 --- a/js/app.js +++ b/js/app.js @@ -24,7 +24,8 @@ $(document).ready(function () { // don't display products on the main "products page" if ((window.location.href.indexOf("products-2") >= 0)){ - $("#productsView").css("display", "none"); + $("#gridView").css("display", "none"); + $("#listView").css("display", "none"); $("#grid").on("click", function (e) { document.cookie = "catView=grid"; location.reload(); diff --git a/js/custom/upcp.js b/js/custom/upcp.js index d45233d..2cf2567 100644 --- a/js/custom/upcp.js +++ b/js/custom/upcp.js @@ -4,7 +4,8 @@ $(document).ready(function () { // don't display products on the main "products page" if ((window.location.href.indexOf("products-2") >= 0)){ - $("#productsView").css("display", "none"); + $("#gridView").css("display", "none"); + $("#listView").css("display", "none"); $("#grid").on("click", function (e) { document.cookie = "catView=grid"; location.reload();