From: Anthony Talarico Date: Mon, 28 Dec 2015 18:33:52 +0000 (-0500) Subject: removing categories view when using checkbox filters X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=38861d51bc11c7ef63fdbc05db0055638319de94;p=WP-Themes%2Fmichsci.git removing categories view when using checkbox filters --- 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(); } }); });