mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Improve QR code widget
This commit is contained in:
@@ -282,7 +282,7 @@
|
||||
{% endif %}
|
||||
<button type="submit" data-toggle="qrcode" data-qrcode="{{ line.secret }}"
|
||||
class="btn btn-xs btn-default">
|
||||
<span class="fa fa-qrcode"></span> {% trans "Ticket secret" %}
|
||||
<span class="fa fa-qrcode"></span> {% trans "Show ticket code" %}
|
||||
</button>
|
||||
{% eventsignal event "pretix.control.signals.order_position_buttons" order=order position=line request=request %}
|
||||
</div>
|
||||
|
||||
@@ -639,7 +639,7 @@ $(function () {
|
||||
$div.append(gettext("Click to close"));
|
||||
$div.slideDown(200);
|
||||
$div.click(function (e) {
|
||||
$(".qr-code-overlay").slideUp(200);
|
||||
$(".qr-code-overlay").attr("data-qrcode", "").slideUp(200);
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user