From 9a6f1dccc4e24467e73dd2a9bb5f7e81b1116d19 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 6 Jul 2023 12:48:33 +0200 Subject: 🐛 wizards: fix autofocus of first field MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/templates/ishtar/wizard/default_wizard.html | 1 + 1 file changed, 1 insertion(+) (limited to 'ishtar_common/templates/ishtar/wizard/default_wizard.html') diff --git a/ishtar_common/templates/ishtar/wizard/default_wizard.html b/ishtar_common/templates/ishtar/wizard/default_wizard.html index 50e0662ae..405c52965 100644 --- a/ishtar_common/templates/ishtar/wizard/default_wizard.html +++ b/ishtar_common/templates/ishtar/wizard/default_wizard.html @@ -65,6 +65,7 @@ $(document).ready(function(){ {% if open_url %}load_window("{{open_url}}");{% endif %} {% block "js_extra_ready" %} {% endblock %} + if ($("[autofocus]").length > 0) autofocus_field = "#" + $($("[autofocus]")[0]).attr('id'); }); {% endlocalize %} {% endblock %} -- cgit v1.2.3