mirror of
https://github.com/pretix/pretix.git
synced 2025-12-20 16:32:26 +00:00
Compare commits
2 Commits
fix-datasy
...
fix-vouche
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fae9f25e0e | ||
|
|
1e4d8b7886 |
@@ -242,13 +242,6 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</form>
|
</form>
|
||||||
{% if ev.presale_is_running and display_add_to_cart %}
|
|
||||||
{% trans "You didn't select any ticket." as label_nothing_to_add %}
|
|
||||||
{% trans "Please tick a checkbox or enter a quantity for one of the ticket types to add to the cart." as description_nothing_to_add %}
|
|
||||||
{% dialog "dialog-nothing-to-add" label_nothing_to_add description_nothing_to_add icon="exclamation-circle" %}
|
|
||||||
<p class="modal-card-confirm"><button class="btn btn-primary">{% trans "OK" %}</button></p>
|
|
||||||
{% enddialog %}
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@@ -123,3 +123,9 @@
|
|||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% trans "You didn't select any ticket." as label_nothing_to_add %}
|
||||||
|
{% trans "Please tick a checkbox or enter a quantity for one of the ticket types to add to the cart." as description_nothing_to_add %}
|
||||||
|
{% dialog "dialog-nothing-to-add" label_nothing_to_add description_nothing_to_add icon="exclamation-circle" %}
|
||||||
|
<p class="modal-card-confirm"><button class="btn btn-primary">{% trans "OK" %}</button></p>
|
||||||
|
{% enddialog %}
|
||||||
|
|||||||
@@ -481,7 +481,7 @@ $(function () {
|
|||||||
$("form:has(#btn-add-to-cart)").on("submit", function(e) {
|
$("form:has(#btn-add-to-cart)").on("submit", function(e) {
|
||||||
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, input[type=radio]:checked") ||
|
||||||
[...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
|
[...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
|
||||||
|
|||||||
Reference in New Issue
Block a user