From 38861d51bc11c7ef63fdbc05db0055638319de94 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 28 Dec 2015 13:33:52 -0500 Subject: [PATCH] removing categories view when using checkbox filters --- js/app.js | 4 ++++ js/custom/upcp.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/js/app.js b/js/app.js index f21c261..8530760 100644 --- a/js/app.js +++ b/js/app.js @@ -77,11 +77,15 @@ $(document).ready(function () { $("#tagBox :checkbox").click(function() { $(".product").hide(); + $("#categoriesGridView").hide(); + $("3categoriesListView").hide() $("#tagBox :checkbox:checked").each(function() { $("." + $(this).val()).show(); }); if($("#tagBox :checkbox:checked").length === 0){ $(".product").show(); + $("#categoriesGridView").show(); + $("#categoriesListView").show(); } }); }); diff --git a/js/custom/upcp.js b/js/custom/upcp.js index 14b2533..cfd04e2 100644 --- a/js/custom/upcp.js +++ b/js/custom/upcp.js @@ -57,11 +57,15 @@ $(document).ready(function () { $("#tagBox :checkbox").click(function() { $(".product").hide(); + $("#categoriesGridView").hide(); + $("3categoriesListView").hide() $("#tagBox :checkbox:checked").each(function() { $("." + $(this).val()).show(); }); if($("#tagBox :checkbox:checked").length === 0){ $(".product").show(); + $("#categoriesGridView").show(); + $("#categoriesListView").show(); } }); }); -- 2.17.1