Fix #1390 -- Fix string on frontpage being evaluated before translations are loaded

This commit is contained in:
Raphael Michel
2019-10-29 20:00:00 +01:00
parent 4a40312a32
commit 621b0c8c95

View File

@@ -209,7 +209,11 @@ $(function () {
}); });
} }
if (!is_enabled && !$(".has-seating").length) { if (!is_enabled && !$(".has-seating").length) {
$("#btn-add-to-cart").prop("disabled", !is_enabled).popover({'content': gettext("Please enter a quantity for one of the ticket types."), 'placement': 'top', 'trigger': 'hover focus'}); $("#btn-add-to-cart").prop("disabled", !is_enabled).popover({
'content': function () { return gettext("Please enter a quantity for one of the ticket types.") },
'placement': 'top',
'trigger': 'hover focus'
});
} else { } else {
$("#btn-add-to-cart").prop("disabled", false).popover("destroy") $("#btn-add-to-cart").prop("disabled", false).popover("destroy")
} }