mirror of https://github.com/aredn/aredn.git
Delay dialog close to allow any unfocus events to finish (#1791)
This commit is contained in:
parent
2b051594d5
commit
7407b18fe1
|
@ -37,5 +37,5 @@
|
|||
{% if (inner !== "nocancel" && auth.isAdmin) { %}
|
||||
<button id="dialog-cancel" hx-delete="{{request.env.REQUEST_URI}}" hx-target="#changes" onclick="setTimeout(_ => document.getElementById('ctrl-modal').close(), 10)">Cancel</button>
|
||||
{% } %}
|
||||
<button id="dialog-done" onclick="setTimeout(_ => document.getElementById('ctrl-modal').close(), 10)">Done</button>
|
||||
<button id="dialog-done" onclick="setTimeout(_ => document.getElementById('ctrl-modal').close(), 100)">Done</button>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue