mirror of
https://github.com/pretix/pretix.git
synced 2026-05-17 17:14:04 +00:00
fix markup
This commit is contained in:
@@ -48,7 +48,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="cart-extend-modal" class="modal-wrapper" hidden aria-live="polite" role="dialog"
|
<div id="cart-extend-modal" class="modal-wrapper" hidden aria-live="polite" role="dialog"
|
||||||
aria-labelledby="cart-extend-modal-title" aria-describedby="cart-extend-modal-desc">
|
aria-labelledby="cart-extend-modal-title" aria-describedby="cart-extend-modal-desc">
|
||||||
<dialog class="modal-card" id="cart-extend-modal">
|
<div class="modal-card" id="cart-extend-modal">
|
||||||
<div class="modal-card-icon">
|
<div class="modal-card-icon">
|
||||||
<i class="fa fa-clock-o big-icon" aria-hidden="true"></i>
|
<i class="fa fa-clock-o big-icon" aria-hidden="true"></i>
|
||||||
</div>
|
</div>
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
<p><button class="btn btn-lg btn-primary">{% trans "Continue" %}</button></p>
|
<p><button class="btn btn-lg btn-primary">{% trans "Continue" %}</button></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</dialog>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% if request.organizer and request.organizer.settings.cookie_consent %}
|
{% if request.organizer and request.organizer.settings.cookie_consent %}
|
||||||
<script type="text/plain" id="cookie-consent-storage-key">cookie-consent-{{ request.organizer.slug }}</script>
|
<script type="text/plain" id="cookie-consent-storage-key">cookie-consent-{{ request.organizer.slug }}</script>
|
||||||
|
|||||||
@@ -21,14 +21,14 @@ var cart = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
show_expiry_notification: function () {
|
show_expiry_notification: function () {
|
||||||
$("#cart-extend-modal").show();
|
$("#cart-extend-modal").removeAttr("hidden");
|
||||||
$("#cart-extend-modal button").focus();
|
$("#cart-extend-modal button").focus();
|
||||||
$("body").addClass("has-modal-dialog");
|
$("body").addClass("has-modal-dialog");
|
||||||
cart._expiry_notified = true;
|
cart._expiry_notified = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
hide_expiry_notification: function () {
|
hide_expiry_notification: function () {
|
||||||
$("#cart-extend-modal").hide();
|
$("#cart-extend-modal").attr("hidden", true);
|
||||||
$("body").removeClass("has-modal-dialog");
|
$("body").removeClass("has-modal-dialog");
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -71,7 +71,7 @@ var cart = {
|
|||||||
}
|
}
|
||||||
var can_extend_cart = diff_minutes < 3 && (diff_total_seconds < 0 || cart._deadline < cart._max_extend);
|
var can_extend_cart = diff_minutes < 3 && (diff_total_seconds < 0 || cart._deadline < cart._max_extend);
|
||||||
$("#cart-extend-button").toggle(can_extend_cart);
|
$("#cart-extend-button").toggle(can_extend_cart);
|
||||||
if (can_extend_cart && diff_minutes < 1 && !cart._expiry_notified) cart.show_expiry_notification();
|
if (can_extend_cart && diff_total_seconds < 45 && !cart._expiry_notified) cart.show_expiry_notification();
|
||||||
},
|
},
|
||||||
|
|
||||||
init: function () {
|
init: function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user