mirror of
https://github.com/pretix/pretix.git
synced 2026-05-11 16:13:59 +00:00
Cart: disable/enable add-to-cart button even with seating active (#3297)
This commit is contained in:
committed by
GitHub
parent
9afaa677c4
commit
232366a639
@@ -421,7 +421,7 @@ $(function () {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!is_enabled && !$(".has-seating").length) {
|
if (!is_enabled && (!$(".has-seating").length || $("#seating-dummy-item-count").length)) {
|
||||||
$("#btn-add-to-cart").prop("disabled", !is_enabled).popover({
|
$("#btn-add-to-cart").prop("disabled", !is_enabled).popover({
|
||||||
'content': function () { return gettext("Please enter a quantity for one of the ticket types.") },
|
'content': function () { return gettext("Please enter a quantity for one of the ticket types.") },
|
||||||
'placement': 'top',
|
'placement': 'top',
|
||||||
|
|||||||
Reference in New Issue
Block a user