mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Do not take "optional" as part of error message label (#4309)
This commit is contained in:
@@ -781,7 +781,7 @@ function setup_basics(el) {
|
|||||||
scrollTarget.id = "panel_" + $("input", scrollTarget).attr("id");
|
scrollTarget.id = "panel_" + $("input", scrollTarget).attr("id");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
label = $("label", this).first().text();
|
label = $("label", this).first().contents().filter(function () { return this.nodeType != Node.ELEMENT_NODE || !this.classList.contains("optional") }).text();
|
||||||
description = $(".help-block", this).first().text();
|
description = $(".help-block", this).first().text();
|
||||||
scrollTarget = $(":input", this).get(0);
|
scrollTarget = $(":input", this).get(0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user