More actions
No edit summary |
No edit summary |
||
| Line 17: | Line 17: | ||
if (header) { | if (header) { | ||
var section = header.closest('.citizen-section-heading'); | var section = header.closest('.citizen-section-heading'); | ||
if (section && | var content = section?.nextElementSibling; | ||
if (section && content) { | |||
section.classList.add('citizen-section-collapsed'); // manually collapse | |||
content.style.display = "none"; // manually hide content | |||
} | } | ||
} | } | ||