Commit Graph

283 Commits

Author SHA1 Message Date
Thomas Gohard
361d6e8f56 Additionals: Correct postalCodeCA to exclude invalid combinations 2015-07-23 15:43:51 -04:00
Thomas Gohard
705e98116c Additionals: Make postalCodeCA method more lenient 2015-07-23 14:11:11 -04:00
Jörn Zaefferer
bc4223806a Core: Remove unused removeAttrs method
jQuery Core supports removing space-separated attributes since 1.7,
and its not used in the plugin anyway.

Fixes #1124
2015-06-30 17:01:29 +02:00
Jörn Zaefferer
f33690b8a5 Core: Replace regex for url method
Making private IPs invalid is fine, and I've modified it to keep
allowing protocol-relative urls.

Fixes #1426
2015-06-30 16:38:27 +02:00
Jörn Zaefferer
72217266b6 Tests: Fix lint issues 2015-06-30 16:20:04 +02:00
Jörn Zaefferer
515202d6cc Core: Refactor attributeRules and dataRules to share noramlizer
Closes #1391
2015-06-30 14:56:53 +02:00
Jörn Zaefferer
64cb211178 Tests: Disable very slow additional methods tests
The methods themselves are mostly broken anyway, should extract into a
separate project.
2015-06-30 14:32:46 +02:00
Jörn Zaefferer
b7f3642e8a Tests: Remove slow and useless remote method tests 2015-06-30 14:29:49 +02:00
Yair Sladowsky
3c759331f5 Core: Update url method to allow for protocol-relative URLs
Closes #1510
2015-06-30 14:20:14 +02:00
David Weston
747890974c Core: Use jQuery 1.7+ on/off, add destroy method
Replaces validateDelegate method with jQuery's on() method. This raises
the minimum supported jQuery version to 1.7.0, dropping support for 1.6.

Closes #1392
2015-06-17 13:21:11 +02:00
Florent
c5ac242eef Additionals: Update time method to allow single digit hour
Closes #1461
2015-06-16 20:16:10 +02:00
Markus Staab
d937c3198c Tests: Dropped obsolete timeouts, speeding up test runtime.
Fixes #1343
Closes #1496
2015-06-16 19:57:15 +02:00
Jörn Zaefferer
bb85279297 Tests: Make sure long TLDs work fine for email and url methods 2015-06-16 19:56:42 +02:00
Jörn Zaefferer
2ad0ca82da Core: Stop trimming value inside required method
There was never much of a point anyway, and it causes problems.

Fixes #1498
2015-06-16 19:50:11 +02:00
Darshan Jani
41bc9825b9 Tests: Update to QUnit 1.18.0
Closes #1467
2015-05-12 13:37:36 +02:00
Brahim Arkni
63cb473c21 Core: Exclude some keyboard keys to prevent revalidating the field
Avoid revalidate the field when pressing one of the following keys
 in 'onkeyup' method:
	Shift       => 16
	Alt         => 18
	Caps lock   => 20
	End         => 35
	Home        => 36
	Left arrow  => 37
	Up arrow    => 38
	Right arrow => 39
	Down arrow  => 40
	Insert      => 45
	Num lock    => 144
	AltGr key   => 225

This helps especially with the remote method, which has a lot of
overhead.

Closes #1411
2015-02-24 19:40:35 +01:00
Jörn Zaefferer
93e614774c Tests: Update to QUnit 1.17.1 2015-02-17 12:25:57 +01:00
Markus Staab
64d6d7f751 Core: Do not search the whole DOM for radio/checkbox elements
Fixes #1056
Closes #1064
2015-02-17 12:21:34 +01:00
Jörn Zaefferer
60dd41053d Additionals: Drop bad test for notEqualTo method 2015-02-17 12:12:30 +01:00
Daniel DeGroff
c4b891e837 Additionals: Add notEqualTo method
New method ‘notEqualTo’ that delegates to the equalTo method and
returns the inverted value.

Closes #1020
2015-02-17 12:04:24 +01:00
Jörn Zaefferer
7a632246be Tests: Replace jQuery#size() with #jQuery.length
Apparently newer jQuery versions are removing size(), since length has
been around fover, use that instead.
2015-02-10 20:17:27 +01:00
James
e88f2ef98a Revert "Core: Ignore readonly as well as disabled fields."
This reverts commit 9f4ba10ea7.

Closes #1383
Closes #1300
Ref #1261
2015-01-29 12:19:26 +01:00
wozzo
02b800d9af Core: Fixed number validation error
A single minus sign is invalid.

Fixes #1359
Closes #1361
2015-01-20 16:46:57 +01:00
Maks3w
a6c2a81d7f Core: Focus invalid element when validating a custom set of inputs
Invalid element is not focused when validate a custom set of inputs and
the last one is a valid input. The issue is element method, via
prepareElement method, via reset method, resets errorList state after
validate each input so the global state of the validator is not
preserved.

Closes #1327
2014-12-16 16:03:49 +01:00
Maks
535033dbd4 Core: Reset element styles when using custom highlight methods
When use a custom highlight functions which for example place the error
class in a different element (like Bootstrap form-group wrapper) this
element are not unhighlighted after resetForm.

Closes #1323
2014-12-02 17:38:58 +01:00
a-barry
394a246d4a Core: Escape dollar sign in error id
Fix non label error elements containing $ character in the name/id
(asp.net web forms) causing syntax error in sizzlejs.

Fixes #1331
Closes #1336
2014-12-02 16:37:38 +01:00
Nadi
89034eb4d4 Additionals: Brazilian CPF number
Closes #1310
2014-11-11 22:33:42 +01:00
fernandopasse
cc6c4a4fd6 Additionals: Add postalcodeBR method
Validates brazialian postal codes

Closes #1291
2014-10-14 16:28:31 +02:00
Jörn Zaefferer
fe14d00a1d Core: Allow 0 as value for autoCreateRanges
Closes #1293
2014-10-14 16:25:06 +02:00
Barry vd. Heuvel
4cecd73649 Additionals: Fix pattern method when parameter is a string
Reverts 37992c1c9e

The pattern should match the entire value of the input, not just a subset.

Closes #1204
2014-10-02 18:10:14 +02:00
colemanw
9f4ba10ea7 Core: Ignore readonly as well as disabled fields.
Closes #1261
Closes #1262
2014-09-23 13:50:32 +02:00
Jörn Zaefferer
452b823c86 Core: Don't trim value in min/max/rangelength methods
Fixes #1274
2014-09-23 13:33:14 +02:00
Jörn Zaefferer
20f3e9fac9 Core: Escape id/name before using it as a selector in errorsFor
Fixes #1275
2014-09-23 13:27:51 +02:00
Jörn Zaefferer
f1c611ed7a Core: Apply ignore setting to all validationTargetFor elements
Previously the filter only applied to checkables. Adds a test and moves
an existing valid() test closer to the others.

Ref #156
Closes #468
2014-09-23 12:23:37 +02:00
Damian Mooyman
c054707d6f Core: Fix incorrect regexp
Fixes #1200
Closes #1201
2014-08-11 17:08:41 +02:00
Jörn Zaefferer
e5f2d29f57 Build: Fix the jscs upgrade, disable some rules for now 2014-07-01 21:15:26 +02:00
Jeremy Forsythe
a128e26f04 Additionals: Add statesUS method
Validates two-letter US state abbreviations (including DC)

Closes #1005
2014-07-01 20:42:19 +02:00
Jörn Zaefferer
a513ca4074 Test: Removes stale and useless test files and firebug light 2014-07-01 19:58:56 +02:00
Lars Laade
4c8c397773 All: Remove closing slash on empty elements 2014-06-24 09:01:42 +02:00
Damian Mooyman
ea22f54348 Core: Respect non-error aria-describedby and empty hidden errors
Ref #1083
Closes #1140
2014-06-23 11:17:35 +02:00
paladox2015
a8679848dc All: Update copies of externals and versions of CDN references
Updates jQuery Mobile demo to use 1.4, updates Multipart demo to use
latest jQuery UI, updates requirejs demo to use latest requirejs and jQuery,
updates copy of QUnit to latest.

Closes #1164
Closes #1166
Closes #1168
Closes #1169
Closes #1170
2014-06-17 16:45:19 +02:00
Lars Laade
32087b66e6 Test: added click on radio/checkbox test 2014-06-11 23:42:42 +02:00
Damian Mooyman
18eed400c8 Tests: Update error-placement test for jQuery 1.11 compatibility
Closes #1158
2014-06-10 10:51:56 +02:00
paladox2015
365cc87b7e Lib: Add jQuery 1.11.1, remove the jquery.js loader in test/ 2014-06-09 21:46:59 +02:00
Nick Schonning
bfc2f43703 All: Update URLs to jqueryvalidation.org
Fixes #1123
Closes #1134
2014-05-30 11:36:10 +02:00
Wing
a096aa2b76 Core: Improve dateISO RegExp
Closes #1136
2014-05-30 11:18:14 +02:00
Nick Schonning
d0c56e005e Build: Run JSCS against tests 2014-05-27 00:08:54 -04:00
Lars Laade
cda5efa487 Core: Added radio/checkbox to delegate click-event
Reverts the accidental change from d319a0da35,
where these event handlers were dropped.

Closes #1126
2014-05-23 14:17:35 +02:00
Damian Mooyman
e5e70b1632 Core: Use aria-describedby for non-label elements
Fixes #900
Closes #1083
2014-05-21 11:39:51 +02:00
pylover
b258647540 Additionals: Add persian date method
Also add localization for minWords and maxWords in persian.

Closes #1038
2014-05-20 16:13:41 +02:00