From 609f0b632c0efa227c0f3f7d6ef246be129e0b6a Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Sun, 28 Jul 2019 16:06:14 +0200 Subject: [PATCH] Do not block "add to cart" button when seating is used --- src/pretix/presale/templates/pretixpresale/event/index.html | 1 + src/pretix/static/pretixpresale/js/ui/main.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pretix/presale/templates/pretixpresale/event/index.html b/src/pretix/presale/templates/pretixpresale/event/index.html index 47d09167d..f70363250 100644 --- a/src/pretix/presale/templates/pretixpresale/event/index.html +++ b/src/pretix/presale/templates/pretixpresale/event/index.html @@ -216,6 +216,7 @@
{% csrf_token %} diff --git a/src/pretix/static/pretixpresale/js/ui/main.js b/src/pretix/static/pretixpresale/js/ui/main.js index 37a74894b..034268953 100644 --- a/src/pretix/static/pretixpresale/js/ui/main.js +++ b/src/pretix/static/pretixpresale/js/ui/main.js @@ -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")