From 4175bb1013fc0fdf67d11714f794c40de02b2714 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 28 Dec 2015 13:21:48 -0500 Subject: [PATCH] added logic to re populate products if no filter is selected --- js/app.js | 3 +++ js/custom/upcp.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/js/app.js b/js/app.js index 93d434c..f21c261 100644 --- 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(); + } }); }); diff --git a/js/custom/upcp.js b/js/custom/upcp.js index 580bb85..14b2533 100644 --- a/js/custom/upcp.js +++ b/js/custom/upcp.js @@ -60,5 +60,8 @@ $(document).ready(function () { $("#tagBox :checkbox:checked").each(function() { $("." + $(this).val()).show(); }); + if($("#tagBox :checkbox:checked").length === 0){ + $(".product").show(); + } }); }); -- 2.17.1