forked from CGM_Public/pretix_original
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({
|
||||
'content': function () { return gettext("Please enter a quantity for one of the ticket types.") },
|
||||
'placement': 'top',
|
||||
|
||||
Reference in New Issue
Block a user