Bug 27191: Set focus on first input when adding a new patron category

When adding a new patron category, the focus/cursor should be
in the first input field of the form: Category code

To test:
* Add a new patron category in administration > patron categories
  - cursur is in no field
* Apply patch
* Add another new patron category
  - cursor is now in the first input field of the form: Category code

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Katrin Fischer 2022-08-18 20:15:30 +00:00 committed by Tomas Cohen Arazi
parent 4d772a8fe0
commit 41b2f087ef
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@
[% ELSE %]
<li>
<label for="categorycode" class="required">Category code: </label>
<input type="text" name="categorycode" id="categorycode" size="10" maxlength="10" class="required" required="required" />
<input type="text" name="categorycode" id="categorycode" size="10" maxlength="10" class="required focus" required="required" />
<span class="required">Required</span>
</li>
[% END %]