]> git.koha-community.org Git - koha.git/commit
Bug 9137 - Focus when editing/adding new itemtypes/authorised values
authorOwen Leonard <oleonard@myacpl.org>
Mon, 26 Nov 2012 15:49:22 +0000 (10:49 -0500)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 29 Nov 2012 22:31:13 +0000 (11:31 +1300)
commit8717f98508b32189c46e0a3592166bcf61aafd8a
tree2bdc9fce115f818e9d7d8deed0d6c5c56675e426
parentdf7060ad4a2b24d076a70a5fe4cd2f6ffc63c9a0
Bug 9137 - Focus when editing/adding new itemtypes/authorised values

This patch adds the "focus" class to the relevant inputs so
that the global staff client JS will move the focus to those fields.
Logic in the authorised_values template puts the focus on the
correct field whether you're adding a new category, a new value,
or performing an edit.

To test, try the following operations:
 - add an itemtype
 - edit an itemtype
 - add an authorised value category
 - add an authorised value value
 - edit an authorised value value

In all cases the focus should automatically be in the first
form field.

Signed-off-by: Melia Meggs <melia@test.bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
All tests pass and works nicely.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Works well in 3.10.x
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Works well in 3.8.x
koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt
koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt