Ctrl-enter submit the form on custom alias page
This commit is contained in:
parent
8a74aee363
commit
e75ede969a
|
@ -108,6 +108,13 @@
|
||||||
{% block script %}
|
{% block script %}
|
||||||
<script>
|
<script>
|
||||||
$('.mailbox-select').multipleSelect();
|
$('.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 () {
|
$("#submit").on("click", async function () {
|
||||||
let that = $(this);
|
let that = $(this);
|
||||||
|
|
Loading…
Reference in New Issue