Ctrl-enter submit the form on custom alias page

This commit is contained in:
Son 2021-01-16 19:56:30 +01:00
parent 8a74aee363
commit e75ede969a
1 changed files with 7 additions and 0 deletions

View File

@ -108,6 +108,13 @@
{% block script %}
<script>
$('.mailbox-select').multipleSelect();
// Ctrl-enter submit the form
$('form').keydown(function(event) {
if (event.ctrlKey && event.keyCode === 13) {
$("#submit").click();
}
})
$("#submit").on("click", async function () {
let that = $(this);