Do not block "add to cart" button when seating is used

This commit is contained in:
Raphael Michel
2019-07-28 16:06:14 +02:00
parent 10aeadf835
commit 609f0b632c
2 changed files with 2 additions and 1 deletions

View File

@@ -208,7 +208,7 @@ $(function () {
}
});
}
if (!is_enabled) {
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'});
} else {
$("#btn-add-to-cart").prop("disabled", false).popover("destroy")