From 4537922c56db560d97b75855aa02f6b5413507cf Mon Sep 17 00:00:00 2001 From: Robert Goldmann <deadlocker@gmx.de> Date: Mon, 11 May 2020 20:48:31 +0200 Subject: [PATCH] #338 - initially focus template name input --- src/main/resources/static/js/templates.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/resources/static/js/templates.js b/src/main/resources/static/js/templates.js index 19ae74af4..13d3df6e8 100644 --- a/src/main/resources/static/js/templates.js +++ b/src/main/resources/static/js/templates.js @@ -44,6 +44,11 @@ $(document).ready(function() searchTemplates(searchText); }); } + + if($("#template-name").length) + { + document.getElementById('template-name').focus(); + } }); function createAndOpenModal(data) -- GitLab