Fixes two UX regressions
authorNicol <vingle@users.noreply.github.com>
Sat, 16 Dec 2023 00:18:49 +0000 (00:18 +0000)
committerGitHub <noreply@github.com>
Sat, 16 Dec 2023 00:18:49 +0000 (00:18 +0000)
https://lab.civicrm.org/dev/core/-/issues/4856

templates/CRM/Contact/Form/Search/AdvancedCriteria.tpl

index e8f459bad56051a133a9b74ac5e3814764c528ff..715eeee7f1153b4e53bdc8a5bc24c481f0556427 100644 (file)
@@ -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', '');
 });
 </script>
 {/literal}