]> git.koha-community.org Git - koha.git/commit
Bug 11002: (follow-up) use jQuery validator plugin
authorGalen Charlton <gmc@esilibrary.com>
Tue, 22 Oct 2013 05:15:07 +0000 (05:15 +0000)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 5 Dec 2013 14:44:25 +0000 (11:44 -0300)
commitbf7e754f29db720f7dfdaf385ea30b0a62faf762
tree6169de101ec157c5f4df0d81a983e50c2062ca6e
parente6dc671fea264f21b50caed9baa48dec72508464
Bug 11002: (follow-up) use jQuery validator plugin

This patch uses the jQuery validator plugin introduced in
bug 6209 for two reasons:

[1] To supply validation for non-HTML5-compatible web
    browsers.
[2] To force use of the validator plugin rather than
    built-in validation for HTML5 browsers, which means
    that our translations will be used.

Note that a version of the function to prevent double form submission
is used as the submit handler invoked when the validator plugin
is satisified that the form is complete.

To test:

[1] Same as the main test plan, but note that the validation
    messages now appear inline rather than as pop-ups.
[2] Verify that the double form submission prevention still
    works.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit e52bd72c650787e9c7690b7cfe172a9d9feab698)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt