Bug 31410: Set focus for cursor to Server name when adding a new Z39.50/SRU server
authorKatrin Fischer <katrin.fischer.83@web.de>
Sun, 5 Feb 2023 00:17:01 +0000 (00:17 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 12 May 2023 15:19:58 +0000 (16:19 +0100)
commit71f20a1c3513759393a9bae3654eb295fcb4016e
tree87bff50f93ed05b7cb74341b11b3d8c9e849bd2a
parent3f06c75929c4447a7eaa5e4e2d8fe29ca3126704
Bug 31410: Set focus for cursor to Server name when adding a new Z39.50/SRU server

This makes sure that the focus is in the first form field when
adding a new Z39.50 or SRU server.

To test:
* Administration > Z39.50/SRU servers
* Add a new server for each
* Verify the focus is not in the form
* Apply patch
* Verify the focus is now in the first form field
* Edit an existing server
* Verify the focus is not in the form

Not having the focus when editing is to avoid accidental changes.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 2504a282b5890168616c1a87206f8762c38a660d)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt