From 51e6e52a31faa7cdead3d9d92d39976be46ba543 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 22 Dec 2015 08:39:41 -0500 Subject: [PATCH] added view control for list and grid view for categories --- js/app.js | 3 ++- js/custom/upcp.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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(); -- 2.17.1