]> git.koha-community.org Git - koha.git/commit
Bug 25349: Add checkEnter function and apply it to SCO page
authorLucas Gass <lucas@bywatersolutions.com>
Tue, 5 May 2020 18:04:11 +0000 (18:04 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Wed, 17 Jun 2020 22:25:11 +0000 (22:25 +0000)
commitc6813b7d018a923d9256b1a7cabc964fb15445a3
treefa4a4d7062451a14a6658de1e1cc38429c1efdfe
parent014dfd82b6043437a08589e18f2917aaebdfc592
Bug 25349: Add checkEnter function and apply it to SCO page

This patch adds the checkEnter function to the OPAC global.js and then applies it to the SCO login page.
TO TEST:
1. Go to SCO login and try entering something in the "Login:" input amd "Password:" input.
2. Pressing enter while in either will automatically submit the form.
3. Apply patch.
4. Type something into the Login: field and press enter, the form should NOT submit.
5. Type something into the Password: field and pess enter, this SHOULD submit the form.
6. Change the syspref SelfCheckoutByLogin to 'Cardnumber'
7. Type something into the Please enter your card number: field, the form should submit.

Signed-off-by: Donnab <donna@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 941b5aaecc0c528a30abf47b433c3805338ff09a)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt
koha-tmpl/opac-tmpl/bootstrap/js/global.js