Bug 32886: Set focus for cursor to Code when adding a new restriction
authorOwen Leonard <oleonard@myacpl.org>
Tue, 7 Feb 2023 13:40:29 +0000 (13:40 +0000)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Fri, 10 Mar 2023 16:48:28 +0000 (16:48 +0000)
commit45c81ac82f1f64719d44efc527f3cdadc005ddec
tree5dd4a9b90ec6f5be8b7bcf9d7e7adc209f16c74c
parentbc623e39a08d0d271d3166335a50a1a115d5bc53
Bug 32886: Set focus for cursor to Code when adding a new restriction

This patch adds the "focus" class to the form for defining a new patron
restriction so that the cursor focus is automatically added.

To test, apply the patch and go to Administration -> Patron restrictions
-> New restriction.

The cursor should automatically move to the "Code" input field.

Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 546c47ab3fcd380ee3f7be5902fd969d0ebbc3a8)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt