From eaa007b458e788f07f25d396ca801840b93e4100 Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Wed, 5 May 2021 14:29:40 +0200 Subject: [PATCH] Fixes issue #1394 Now the focus is made on the input for the name of the new group. --- admin/themes/default/js/group_list.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/admin/themes/default/js/group_list.js b/admin/themes/default/js/group_list.js index fd1fdded8..fbd686f2a 100644 --- a/admin/themes/default/js/group_list.js +++ b/admin/themes/default/js/group_list.js @@ -43,8 +43,12 @@ $("#cancel").click(function () { -------*/ var isToggle = true; $(".addGroupBlock").on("click", function() { - if (isToggle) deployAddGroupForm() - else hideAddGroupForm(); + if (isToggle) { + deployAddGroupForm(); + } + else { + hideAddGroupForm(); + } }) var deployAddGroupForm = function () { @@ -53,6 +57,7 @@ var deployAddGroupForm = function () { padding: "0px" }, 400, complete=function(){ $("#addGroupForm form").fadeIn(); + $("#addGroupNameInput").focus(); }); isToggle = false; }