From: Nicol Date: Sat, 16 Dec 2023 00:18:49 +0000 (+0000) Subject: Fixes two UX regressions X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b875403ba6df581f8604a438acad18a2b80ce62e;p=civicrm-core.git Fixes two UX regressions https://lab.civicrm.org/dev/core/-/issues/4856 --- diff --git a/templates/CRM/Contact/Form/Search/AdvancedCriteria.tpl b/templates/CRM/Contact/Form/Search/AdvancedCriteria.tpl index e8f459bad5..715eeee7f1 100644 --- a/templates/CRM/Contact/Form/Search/AdvancedCriteria.tpl +++ b/templates/CRM/Contact/Form/Search/AdvancedCriteria.tpl @@ -24,7 +24,6 @@ CRM.$(function($) { var header = $(this).parent(); header.next().html(''); header.removeClass('active'); - header.parent('.crm-ajax-accordion:not(.collapsed)').crmAccordionToggle(); // Reset results-display mode if it depends on this pane var mode = modes[$('#component_mode').val()] || null; if (mode && header.attr('id') == mode) { @@ -72,6 +71,8 @@ CRM.$(function($) { CRM.loadPage(url, {target: body, block: false}); } } + // Keeps the detail/accordion of 'active' fieldsets open after a search + $('summary.active').parent('details').attr('open', ''); }); {/literal}