mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Fix JavaScript issue on "invalid voucher" message
This commit is contained in:
@@ -199,6 +199,7 @@ function setup_basics(el) {
|
|||||||
});
|
});
|
||||||
$(".has-error").each(function() {
|
$(".has-error").each(function() {
|
||||||
var target = target = $(":input", this);
|
var target = target = $(":input", this);
|
||||||
|
if (!target || !target.attr("aria-describedby")) return;
|
||||||
var desc = $("#" + target.attr("aria-describedby").split(' ', 1)[0]);
|
var desc = $("#" + target.attr("aria-describedby").split(' ', 1)[0]);
|
||||||
// multi-input fields have a role=group with aria-labelledby
|
// multi-input fields have a role=group with aria-labelledby
|
||||||
var label = this.hasAttribute("aria-labelledby") ? $("#" + this.getAttribute("aria-labelledby")) : $("[for="+target.attr("id")+"]");
|
var label = this.hasAttribute("aria-labelledby") ? $("#" + this.getAttribute("aria-labelledby")) : $("[for="+target.attr("id")+"]");
|
||||||
|
|||||||
Reference in New Issue
Block a user