From: Anthony Talarico Date: Mon, 28 Dec 2015 18:21:48 +0000 (-0500) Subject: added logic to re populate products if no filter is selected X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=4175bb1013fc0fdf67d11714f794c40de02b2714;p=WP-Themes%2Fmichsci.git added logic to re populate products if no filter is selected --- 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(); + } }); });