]> 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)
committerLiz Rea <liz@catalyst.net.nz>
Sun, 23 Dec 2012 21:56:34 +0000 (10:56 +1300)
commita8a191bcb35c68c1245eb6bdb324cc4316c9dcbb
tree3e902c1f5f71ced3d57aa89deff3c7ee9ac3f5b1
parenta7277ff28acf5c00b20cecd6bad64932af78b86c
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

Signed-off-by: Liz Rea <liz@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt
koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt