Fix JavaScript issue on "invalid voucher" message

This commit is contained in:
Raphael Michel
2022-07-11 18:08:37 +02:00
parent 129e831e06
commit 09eb14fe37

View File

@@ -199,6 +199,7 @@ function setup_basics(el) {
});
$(".has-error").each(function() {
var target = target = $(":input", this);
if (!target || !target.attr("aria-describedby")) return;
var desc = $("#" + target.attr("aria-describedby").split(' ', 1)[0]);
// multi-input fields have a role=group with aria-labelledby
var label = this.hasAttribute("aria-labelledby") ? $("#" + this.getAttribute("aria-labelledby")) : $("[for="+target.attr("id")+"]");