]> git.koha-community.org Git - koha.git/commit
Bug 27192: Automatically set focus to the item type input box
authorAndreas Roussos <a.roussos@dataly.gr>
Fri, 8 Jan 2021 14:45:32 +0000 (15:45 +0100)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Tue, 2 Feb 2021 01:03:50 +0000 (02:03 +0100)
commit213bb9c383793879af1e1e6e8f1c4a74feb63504
tree12c9d41ed5e7e495cd06fe1ce3733d5e442663b6
parent1341493bb76d8c47441f1dd32f3d45a8564c8571
Bug 27192: Automatically set focus to the item type input box

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
<input> 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 <kelly@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit a219a78239049245768ae3abd781136745f9a01f)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 791bd8803115691b0f8567eec6d99ef9509455bf)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
(cherry picked from commit f7a2fe0e60f24a165b019687ace546f5cebc5267)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt