Bug 26828: Set focus for cursor to current password field when updating in the OPAC

This patch adds the "focus" class to the first field in the
OPAC's password update form so that the field automatically receives
focus upon page load.

To test, apply the patch and make sure the OpacPasswordChange system
preference is enabled.

- Log in to the OPAC
- Open the "Change your password" page
- The cursor should automatically be in the "Current password" field
  when the page loads.

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

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Owen Leonard 2020-10-27 10:45:18 +00:00 committed by Jonathan Druart
parent b127f862ee
commit 27735ed40d
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@
[% END %]
<div class="form-group">
<label for="Oldkey">Current password:</label>
<input class="form-control" type="password" id="Oldkey" size="25" name="Oldkey" />
<input class="form-control focus" type="password" id="Oldkey" size="25" name="Oldkey" />
</div>
<div class="form-group">
<label for="Newkey">New password:</label>