removing categories view when using checkbox filters
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 28 Dec 2015 18:33:52 +0000 (13:33 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 28 Dec 2015 18:33:52 +0000 (13:33 -0500)
js/app.js
js/custom/upcp.js

index f21c261..8530760 100644 (file)
--- 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();
         }
     });
 });
index 14b2533..cfd04e2 100644 (file)
@@ -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();
         }
     });
 });