Bug 31398: Set focus on first input when adding a new authority type

When adding a new authority type the focus should be on the
first field of the input form: Authority type

* Add a new authority type from administration > authority types
* Verify the focus is not on any of the form fields/inputs
* Apply patch
* Add another new authority type
* Verify the focus/cursor is now in the Authority type field

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:33:42 +00:00 committed by Tomas Cohen Arazi
parent 4ea1cf6cce
commit 392ee0ff81
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ Authority types &rsaquo; Administration &rsaquo; Koha
[% ELSE %]
<div class="hint">10 characters maximum</div>
<label for="authtypecode" class="required">Authority type: </label>
<input id="authtypecode" type="text" class="required" required="required" name="authtypecode" size="20" maxlength="10" />
<input id="authtypecode" type="text" class="required focus" required="required" name="authtypecode" size="20" maxlength="10" />
<span class="required">Required</span>
[% END %]
</li>