From: Nicol Date: Wed, 6 Dec 2023 21:00:30 +0000 (+0000) Subject: Targets the crmAccordionToggle more tightly X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0abc79d77ebd6f537120b3e3cfcf4a64ace44d01;p=civicrm-core.git Targets the crmAccordionToggle more tightly So as to not hide the
content. --- diff --git a/js/Common.js b/js/Common.js index 1b5c08f9d1..113efcc317 100644 --- a/js/Common.js +++ b/js/Common.js @@ -1730,10 +1730,10 @@ if (!CRM.vars) CRM.vars = {}; $(this).each(function () { var action = 'open'; if ($(this).hasClass('collapsed')) { - $('.crm-accordion-body', this).first().css('display', 'none').slideDown(speed); + $('div.crm-accordion-wrapper > .crm-accordion-body', this).first().css('display', 'none').slideDown(speed); } else { - $('.crm-accordion-body', this).first().css('display', 'block').slideUp(speed); + $('div.crm-accordion-wrapper > .crm-accordion-body', this).first().css('display', 'block').slideUp(speed); action = 'close'; } $(this).toggleClass('collapsed').trigger('crmAccordion:' + action);