diff --git a/themes/default/js/mcs.js b/themes/default/js/mcs.js index 15296fcd0..1ec844e4c 100644 --- a/themes/default/js/mcs.js +++ b/themes/default/js/mcs.js @@ -7,16 +7,17 @@ $(document).ready(function () { $(this).find(".validate-text").hide(); }); + // If we open another filter, hide all other dropdowns expect the one just opened $("div.filter").on("click", function () { $(this).siblings().removeClass("show-filter-dropdown"); $(this).siblings().children("div.filter-form").css('display','none'); }); + // If we open the choose filters modal hide all filter forms if any open $("div.filter-manager").on("click", function () { $('div.filter').children("div.filter-form").css('display','none'); }); - global_params.search_id = search_id; if (!global_params.fields) {