summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar/wizard/default_wizard.html
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2023-07-06 16:00:30 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2023-07-06 16:05:50 +0200
commitab8e92b36463e2592469cdd137b09ce43c75c33f (patch)
treea7b1d4747d6be8f468fa88a37dc2c77c8c6a8dda /ishtar_common/templates/ishtar/wizard/default_wizard.html
parent17a408ce343376f883c4ba0737d3a36c349db2ce (diff)
downloadIshtar-ab8e92b36463e2592469cdd137b09ce43c75c33f.tar.bz2
Ishtar-ab8e92b36463e2592469cdd137b09ce43c75c33f.zip
💄 wizards: validate forms with CTRL+ENTER
Diffstat (limited to 'ishtar_common/templates/ishtar/wizard/default_wizard.html')
-rw-r--r--ishtar_common/templates/ishtar/wizard/default_wizard.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/ishtar_common/templates/ishtar/wizard/default_wizard.html b/ishtar_common/templates/ishtar/wizard/default_wizard.html
index 405c52965..fcc020816 100644
--- a/ishtar_common/templates/ishtar/wizard/default_wizard.html
+++ b/ishtar_common/templates/ishtar/wizard/default_wizard.html
@@ -66,6 +66,11 @@ $(document).ready(function(){
{% block "js_extra_ready" %}
{% endblock %}
if ($("[autofocus]").length > 0) autofocus_field = "#" + $($("[autofocus]")[0]).attr('id');
+ $(".wizard-form").keydown(function(e){
+ if (e.ctrlKey && e.keyCode == 13) {
+ $("#submit_form").click();
+ }
+ });
});
{% endlocalize %}</script>
{% endblock %}