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 546c47ab3f)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
This commit is contained in:
parent
bc623e39a0
commit
45c81ac82f
|
|
@ -120,7 +120,7 @@
|
|||
[% ELSE %]
|
||||
<li>
|
||||
<label for="code" class="required">Code: </label>
|
||||
<input type="text" name="code" id="code" size="50" maxlength="50" class="required type_input " required="required" />
|
||||
<input type="text" name="code" id="code" size="50" maxlength="50" class="focus required type_input " required="required" />
|
||||
<span class="required">Required</span>
|
||||
</li>
|
||||
<li>
|
||||
|
|
|
|||
Loading…
Reference in New Issue