Ctrl-enter submit the form on custom alias page
This commit is contained in:
parent
8a74aee363
commit
e75ede969a
|
@ -109,6 +109,13 @@
|
|||
<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);
|
||||
let mailbox_ids = $(`#mailboxes`).val();
|
||||
|
|
Loading…
Reference in New Issue