]> 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 07:33:19 +0000 (20:33 +1300)
commitbd1f7f03c33139725236263fd93b394e665d532d
treeb9b0b58e40073734f3fede03701891eb74314dfd
parent12d0c7ee713b27d2a9a89e036913c5191a9610b7
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>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt
koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt