From e07f7d38681fdceb61c73c7da7caeb0a94a5ce5a Mon Sep 17 00:00:00 2001 From: HWFord <54360213+HWFord@users.noreply.github.com> Date: Wed, 20 Sep 2023 16:14:26 +0200 Subject: [PATCH] related #1986 add comments --- themes/default/js/mcs.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {