]> git.koha-community.org Git - koha.git/commit
Bug 26828: Set focus for cursor to current password field when updating in the OPAC
authorOwen Leonard <oleonard@myacpl.org>
Tue, 27 Oct 2020 10:45:18 +0000 (10:45 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 3 Nov 2020 09:57:35 +0000 (10:57 +0100)
commit27735ed40deaf438e622acee0d41147bdbe2d5e1
tree700dca19988559843ef10888626cc75d1c5e624f
parentb127f862ee991aefba80f9d7238615a93953370b
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>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-passwd.tt