g1smd
45154af738
Updated and corrected GB RegEx pattern. Minor refactor of RegEx pattern. Minor RegEx refactor for efficiency. Fix holes in date validations. Closes gh-514
2013-02-27 13:55:20 +01:00
Paul Cichonski
bcff73ad84
Bypass validation for buttons with 'formnovalidate' attribute (same as class="cancel"). Closes gh-623
2013-02-12 13:38:47 +01:00
Alexander I. Zaytsev
69831a08cf
Remove clearing as numbers of min, max and range rules. Fixes #455 . Closes gh-528.
...
These rules are fully suitable to check any comparable JavaScript objects such as strings or dates. Also clearing prevents HTML5 date input fields to work when these rules are coming from HTML.
2013-02-04 12:11:10 +01:00
Nick Williams
856cec06b8
Update pre-existing labels - fixes #430 closes gh-436
...
made assumption that any existing label which already has errorClass is
safe to update with a new message.
2013-01-31 12:55:17 +01:00
Jörn Zaefferer
07fdf0c95c
Add a min-height to test container for jQuery-git compat
2013-01-31 01:14:20 +01:00
Jörn Zaefferer
d974246d23
Testsuite now has 1.6.x as minimum jQuery version, so remove older versions
2013-01-31 00:57:24 +01:00
Jörn Zaefferer
b5cd04e327
Lint test files
2013-01-31 00:28:13 +01:00
Jörn Zaefferer
2b1b2563c5
Fix $.validator.format to avoid group interpolation, where at least IE8/9 replaces -bash with the match. Fixes #614
2013-01-31 00:12:32 +01:00
John-Philip Johansson
0681cc06c5
Added jQuery 1.9 to the project. Closes gh-613
2013-01-30 23:14:20 +01:00
IamDavidovich
b82d8cc1db
Allow groups to be an array or a string - Fixes #479
...
Field names can contain spaces (as they are a CDATA type). This causes problems with groups, as the string listing the fields is split on spaces.
This commit allows the groups option to be either a space-separated string or an array of strings so that field names with spaces can be added. It also adds a unit test to ensure that both string and array based groups are processed into the same data structures.
2012-12-10 12:59:37 +01:00
Synchro
e4f3a87493
Fix some date validations, JS syntax errors.
2012-11-26 11:48:24 +01:00
Max Lynch
6df33a8ccc
Remove support for metadata plugin, replace with data-rule- and data-msg- (added in 907467e8) properties.
2012-11-23 14:39:37 +01:00
Jörn Zaefferer
5ec962ebb6
Update dependencies: Remove old jQuery versions, include new ones. Update QUnit and Form plugin.
2012-11-23 14:26:56 +01:00
g1smd
0b3e34cde9
Optimise RegEx patterns, especially for UK phone numbers.
2012-09-06 16:25:53 +02:00
Jörn Zaefferer
1bdaca0171
Test against latest stable jQuery Core version
2012-08-09 16:46:50 +03:00
Max Lynch
907467e874
Merged in changes for specifying custom error messages in data attributes
2012-05-15 17:39:40 -05:00
Max Lynch
55920f0f75
Updated UK Mobile phone number regex for new numbers. Fixes #154
2012-05-07 15:14:00 +02:00
Max Lynch
a8568232a6
Add element to success call with test. Fixes #60
2012-05-07 11:30:10 +02:00
Max Lynch
851e941a60
Fixed regex for time additional method. Fixes #131
2012-05-05 14:19:47 -05:00
Max Lynch
f0b8042233
resetForm now clears old previousValue on form elements. Fixes #312
2012-05-04 10:48:49 -05:00
Max Lynch
c3ce5b4569
Added checkbox test to require_from_group and changed require_from_group to use elementValue. Fixes #359
2012-05-04 11:20:17 +02:00
Max Lynch
a24e58a293
Fixed dataFilter response issues in jQuery 1.5.2+. Fixes #405
2012-05-04 11:13:06 +02:00
Max Lynch
278d3f3b3e
Added US zip code support and test. Fixes #90
2012-04-29 20:34:18 +02:00
Max Lynch
43d963b4ec
Removed number stripping from stripHtml. Fixes #2
2012-04-28 16:48:05 +02:00
Max Lynch
7cc01adbd1
Fixed invalid count on invalid to valid remote validation. Fixes #286
2012-04-28 16:41:28 +02:00
Max Lynch
b475b483f5
Moved old accept method to extension additional-method, added new accept method to handle standard browser mimetype filtering. Fixes #287 and supersedes #369
2012-04-22 23:37:01 -05:00
Max Lynch
aca144b5eb
Disables blur event when onfocusout is set to false. Test added.
2012-04-20 15:11:34 +02:00
Max Lynch
58930870c6
Fixed value issue for radio buttons and checkboxes. Fixes #363
2012-04-20 15:09:15 +02:00
Max Lynch
5c2ecd1b76
Added test for rangeWords and fixed regex and bounds in method. Fixes #308
2012-04-20 15:04:57 +02:00
Max Lynch
a436634fe8
Added pseudo selector for text input types to fix issue with default empty type attribute. Added tests and some test markup. Fixes #217
2012-04-18 00:14:33 +02:00
Jörn Zaefferer
ba717554b1
Update to QUnit 1.5.0
2012-04-04 19:14:31 +02:00
Jörn Zaefferer
1539feb1a2
Use equal assertion, not equal
2012-04-03 18:44:10 +02:00
Jörn Zaefferer
8f8792fd86
Fix whitespace and formatting in additional-methods and tests
2012-04-03 16:24:45 +02:00
Nathan Long
78a739f7c5
Added methods "require_from_group" and "skip_or_fill_minimum"
2012-04-03 16:15:04 +02:00
Max Lynch
f2d525c919
Fixed regex issue for decimals without leading zeroes. Added new methods test. Fixes #41
2012-04-03 12:00:03 +02:00
Max Lynch
1bbf7a636f
Support for dynamically added submit buttons, and updated test case. Uses validateDelegate. Code from PR #9
2012-04-02 14:55:56 +02:00
Jörn Zaefferer
a0a0cb8c69
Fix bad double quote in test fixtures
2012-03-29 22:23:51 +02:00
Max Lynch
85b719b8d3
Fix maxWords method to include the upper bound, not exclude it. Fixes #284
2012-03-29 21:40:19 +02:00
Başar Aykut
bafc78671a
Fixed handling of multiple class names for errorClass option. Test by Max Lynch. Fixes #280
2012-03-29 19:20:50 +02:00
Jörn Zaefferer
c243e8ee88
Update testsuite to use equal and deepEqual. Fix tests that the fix for #219 ( 732f5ff04b) broke. The element method now returns true for dependency-mismatch, that's fine.
2012-02-24 17:58:46 +01:00
Jörn Zaefferer
ccca8f6bb3
Update to latest QUnit
2012-02-24 17:50:41 +01:00
gavacho
5dda6daa6c
Pattern method: Convert string param to RegExp. Fixes issue #223
2012-02-23 19:24:54 +01:00
Jörn Zaefferer
77504815d0
Kick out GA tracking from demos. As nice as it would be to know how many people actually use the plugin, this is not the right approach.
2011-11-03 09:58:07 +01:00
Chris Stainthorpe
cfdb6c3835
Allowed credit card numbers to contain spaces as well as dashes (spaces are commonly input by users). Resolves ( #47 , #39 , #32 )
...
* Changed code to allow spaces
* Amended comment
* Added Qunit tests.
2011-10-05 13:26:40 +01:00
Jörn Zaefferer
8f72d09783
Whitespace cleanup
2011-09-20 19:21:13 +02:00
Christian Koller
2d06d14dab
Fixed #194 - Required as attribute fails if jQuery>=1.6 - Use .prop instead of .attr
...
Plus whitespace cleanup for test/index.html and test/rules.js
2011-09-20 19:14:26 +02:00
Horia Dragomir
2170712966
Fixed #189 - :hidden elements are now ignored by default
2011-09-15 14:23:10 +02:00
Jörn Zaefferer
665f67df4f
Cleanup whitespace
2011-09-13 15:51:28 +02:00
Eric Naeseth
f2321e1f9f
Fixed #177 - Fix validation of a single radio or checkbox input
...
The validator element() method delegates to check(). When check() is
passed a radio or checkbox input element (call it 'A'), it instead
checks the first element with the same name in the form (call it 'B').
If element B is judged invalid, a bug occurs. Element A will have been
added to the currentElements array, but element B is what is added to
the errorList. So, when showErrors is called, element A will be in
validElements(), and will be unhighlighted.
This is fixed by having element() also change its target to be the
first element of the same name when passed a checkbox or radio input.
Signed-off-by: Eric Naeseth <eric@thumbtack.com >
2011-09-13 15:50:08 +02:00
Jörn Zaefferer
3f187a5d01
Fixed #71 - improve existing time method and add time12h method for 12h am/pm time format
2011-09-13 15:45:56 +02:00