]> git.koha-community.org Git - koha.git/commit
Bug 10861: (follow-up) use minlength/maxlength rather than pattern for client-side...
authorGalen Charlton <gmc@esilibrary.com>
Wed, 12 Mar 2014 02:54:05 +0000 (02:54 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 12 Mar 2014 03:05:44 +0000 (03:05 +0000)
commit22593e2e9b613bd03fd42100e60f9a1da53476d9
tree03b46412c400004224fb480a3e14b330484ae5cd
parenta5c7918eb3d4d83ceb22ee9881ebcef99f453345
Bug 10861: (follow-up) use minlength/maxlength rather than pattern for client-side validation

This patch replaces use of the HTML5 pattern attribute with minlength
and maxlength, which is compatible with the jQuery validation plugin
and which, in Chrome 33.0.1750.146 at least, works better.

To test:

[1] Enter a new patron record or edit an existing one.
[2] Verify that the minimum and/or maximum length requirements
    set by the CardnumberLength syspref are validated and that
    form submission is prevented if the cardnumber doesn't
    meet the length requirements.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt