Email settings: Collapse attendee texts if unused (Z#23243417)

This commit is contained in:
Raphael Michel
2026-09-08 21:46:25 +02:00
parent edb4069e18
commit 7d2e4eb494
2 changed files with 12 additions and 4 deletions
@@ -401,6 +401,9 @@ var form_handlers = function (el) {
if (tagName !== "div" && tagName !== "button") {
$toggling = dependent.closest('.form-group');
}
if ($toggling.find(".has-error").length > 0) {
enabled = true; // Don't hide error message that makes form unsubmittable
}
if (ev) {
if (enabled) {
$toggling.stop().slideDown();