mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
Fix #1390 -- Fix string on frontpage being evaluated before translations are loaded
This commit is contained in:
@@ -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")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user