aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/assets/scripts.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-09-28 11:37:48 +0300
committerGravatar Vitaly Takmazov2018-09-28 11:37:48 +0300
commit55d6d599d85c0a38ebb22f4c27039132f88f8b6a (patch)
tree579cd053346f9ff6ee4f9f6328c8d61cb8a3df2e /juick-server/src/main/assets/scripts.js
parent8c23239794a2dfa7be0ea01e5b36a0c4e51d1875 (diff)
scripts: fix ctrl-enter handler
Diffstat (limited to 'juick-server/src/main/assets/scripts.js')
-rw-r--r--juick-server/src/main/assets/scripts.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server/src/main/assets/scripts.js b/juick-server/src/main/assets/scripts.js
index b43b8ff0..556fbf32 100644
--- a/juick-server/src/main/assets/scripts.js
+++ b/juick-server/src/main/assets/scripts.js
@@ -277,7 +277,7 @@ function postformListener(formEl, ev) {
if (ev.ctrlKey && (ev.keyCode == 10 || ev.keyCode == 13)) {
let form = formEl.closest('form');
if (!form.onsubmit || form.onsubmit()) {
- form.submit();
+ form.dispatchEvent(new Event('submit'));
}
}
}