From 9dfccf96fcf1caac9594a1f65ea31879db61d942 Mon Sep 17 00:00:00 2001 From: Katrin Fischer <katrin.fischer.83@web.de> Date: Thu, 18 Aug 2022 20:33:42 +0000 Subject: [PATCH] Bug 31398: Set focus on first input when adding a new authority type When adding a new authority type the focus should be on the first field of the input form: Authority type * Add a new authority type from administration > authority types * Verify the focus is not on any of the form fields/inputs * Apply patch * Add another new authority type * Verify the focus/cursor is now in the Authority type field Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt index 5df96eda7d..663e528397 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt @@ -110,7 +110,7 @@ Authority types › Administration › Koha [% ELSE %] <div class="hint">10 characters maximum</div> <label for="authtypecode" class="required">Authority type: </label> - <input id="authtypecode" type="text" class="required" required="required" name="authtypecode" size="20" maxlength="10" /> + <input id="authtypecode" type="text" class="required focus" required="required" name="authtypecode" size="20" maxlength="10" /> <span class="required">Required</span> [% END %] </li> -- 2.30.2