added logic to re populate products if no filter is selected
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 28 Dec 2015 18:21:48 +0000 (13:21 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 28 Dec 2015 18:21:48 +0000 (13:21 -0500)
js/app.js
js/custom/upcp.js

index 93d434c..f21c261 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -80,5 +80,8 @@ $(document).ready(function () {
         $("#tagBox :checkbox:checked").each(function() {
             $("." + $(this).val()).show();
         });
+        if($("#tagBox :checkbox:checked").length === 0){
+            $(".product").show();
+        }
     });
 });
index 580bb85..14b2533 100644 (file)
@@ -60,5 +60,8 @@ $(document).ready(function () {
         $("#tagBox :checkbox:checked").each(function() {
             $("." + $(this).val()).show();
         });
+        if($("#tagBox :checkbox:checked").length === 0){
+            $(".product").show();
+        }
     });
 });