Bruno Pinto
ad91b6f388
Core: make sure remote is executed last
...
Fixes gh-711
Closes gh-807
2014-01-14 16:58:29 +01:00
Floris Robbemont
0a18ae65b9
Added the current form to the context of the remote ajax request
2014-01-14 16:54:12 +01:00
Andrew Ray
f93e1deb48
Core: Trigger success on optional but have other successful validators
...
The comment in the code itself says "when there are no other rules" but does
nothing to enforce that comment.
Fixes gh-851
Closes gh-852
2014-01-14 16:36:29 +01:00
magic.xie
c1f0baf36c
Core: Fix support for multiple error classes
...
String#replace with a string argument replaces just once, not all matches.
Closes gh-884
2014-01-14 16:21:27 +01:00
Bart Sipes
bf3b350914
Core: Disable deprecated $.format
...
Throwing error if $.format is called and updated all deprecated calls to use
$.validator.format.
Fixes gh-755
Closes gh-971
2014-01-14 15:45:21 +01:00
Jörn Zaefferer
dd162ae360
Methods: Update email to use HTML5 regex, remove email2 method
...
The regex provided by the HTML5 spec allows email addresses without a top level
domain, like name@localhost. That makes the email2 method pointless.
Hopefully this is the last time the email methods ever has to be updated. At
least it will make bug triage easier: If you don't like the implementation,
report an issue against the HTML5 spec.
Fixes gh-828
Closes gh-753
Closes gh-739
2014-01-14 15:27:29 +01:00
Nick Schonning
bf3cfb234e
Initial ARIA-Required implementation
...
Add aria-required tags to any of the data, static or class required elements.
Dynamic validation for rules added through the form.validate rules object do not get picked up till first run.
2013-10-07 17:51:08 +02:00
Nick Schonning
4f8a631cbe
resetForm should clear any aria-invalid values
2013-10-07 17:51:08 +02:00
Nick Schonning
600e292463
Set aria-invalid attribute based on validation
...
As per http://www.w3.org/TR/wai-aria/states_and_properties#aria-invalid
the validation states should only be added after a user has had a chance
to enter a value
2013-10-07 17:51:08 +02:00
Andrew Ray
f5f47c5c66
Restricting credit card validator to include length check. Closes gh-772
...
Without this, '41111' is considered a valid credit card number.
2013-06-25 11:39:47 +02:00
Jörn Zaefferer
6f268031af
valid(): Check all elements. Fixes #791 - valid() validates only the first (invalid) element
2013-06-24 14:59:22 +02:00
Nick Schonning
0bce286762
Split out ajax extension
2013-06-24 14:23:11 +02:00
Nick Schonning
2f4b5b99c2
Split out validateDelegate
2013-06-24 14:23:11 +02:00
Nick Schonning
18d6f2a728
Move and rename jquery validate core file
2013-06-24 14:23:10 +02:00