mirror of
https://github.com/pretix/pretix.git
synced 2026-08-29 13:44:40 +00:00
Update src/pretix/static/pretixpresale/js/ui/main.js
Co-authored-by: Richard Schreiber <schreiber@rami.io>
This commit is contained in:
co-authored by
Richard Schreiber
parent
58bef4851d
commit
76a1a255f7
@@ -482,7 +482,7 @@ $(function () {
|
|||||||
if (
|
if (
|
||||||
(this.classList.contains("has-seating") && this.querySelector("pretix-seating-checkout-button button")) ||
|
(this.classList.contains("has-seating") && this.querySelector("pretix-seating-checkout-button button")) ||
|
||||||
this.querySelector("input[type=checkbox]:checked") ||
|
this.querySelector("input[type=checkbox]:checked") ||
|
||||||
[...this.querySelectorAll(".input-item-count[type=text], .input-item-count[type=number]")].some(input => input.value && input.value !== "0") // TODO: seating hat noch einen seating-dummy-item-count, das ist Mist!
|
[...this.querySelectorAll(".input-item-count:not([type=hidden])")].some(input => input.value && input.value !== "0") // TODO: seating adds a hidden seating-dummy-item-count, which is not useful and should at some point be removed
|
||||||
) {
|
) {
|
||||||
// okay, let the submit-event bubble to async-task
|
// okay, let the submit-event bubble to async-task
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user