From 9fe673857849e826c2825ba75bcbfb7d96453c6a Mon Sep 17 00:00:00 2001 From: Andreas Roussos Date: Fri, 8 Jan 2021 15:45:32 +0100 Subject: [PATCH] Bug 27192: Automatically set focus to the item type input box MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When adding a new item type, you have to click inside the "Ιtem type:" input box before you can start entering text. This patch fixes that by adding the "focus" class to the relevant element so that cursor focus is set when the page loads. Test plan: 1) Try to add a new item type: notice how you have to manually click inside the "Item type:" input box before you start typing. 2) Apply this patch. 3) Repeat step 1) -- this time the "Item type:" input box should gain focus automatically. Signed-off-by: Kelly McElligott --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt index b2c4ca0bcf..186193dd0f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt @@ -112,7 +112,7 @@ Item types administration [% ELSE %]
  • - Required + Required
  • [% END %]
  • -- 2.11.0