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
8d9fa303a4
Fix jQuery.format usage, should be $.validator.format. Fixes #329
2012-03-06 10:47:43 +01:00
Jörn Zaefferer
9feeed5c8f
Add release task to grunt.js, using custom zip task. Currently breaks due to a bug in zipstream ( #5 ).
2012-02-29 14:14:08 +01:00
Jörn Zaefferer
520b6b7a18
Add grunt.js for cmdline liniting and testing. Fix linting errors in main file. Update readme.
2012-02-22 17:21:03 +01:00
Jörn Zaefferer
026d9c218b
Merge remote branch 'razola/master'
2011-10-18 12:10:37 +02:00
Jörn Zaefferer
2805728c07
Drop dateDE and numberDE methods from classRuleSettings, leftover from moving those to localized methods
2011-10-18 11:37:30 +02:00
razola
a82784825c
Passing submit event to submitHandler callback
2011-10-17 20:02:08 +03:00
Jörn Zaefferer
732f5ff04b
Fixed #219 - Fix valid() on elements with dependency-callback or dependency-expression.
2011-10-10 21:40:19 +02: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
27a78df80f
Merge remote branch 'helmer/master'
2011-09-26 11:22:06 -04: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
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
1c0a1408f7
Fixed #184 - resetForm: should unset lastElement
2011-09-11 23:21:08 +02:00
Adam Tibi
d3f9b4660a
Calling validate on a long form on IE7 will cause the "Script is taking too long" to display after sometime. This is tested with jQuery 1.4.4 and Validation Plugin 1.8.1
...
When investigating the library itself the problem turned to be that this line is causing the slowness: this.find("input, button").
The code modifications make the caches the jQuery object rather than querying again, thus, saving valuable resources.
2011-09-05 10:44:01 +02:00
Matthew O'Riordan
33336d5461
Improved email method to not allow the dot at the end (valid by RFC, but unwanted here). Fixes #143
2011-08-10 11:13:18 +02:00
Jörn Zaefferer
b8801490d4
Improved HTML5 support by setting novalidate attribute on the form, and reading the type attribute. Fixes #7
2011-08-09 12:55:24 +02:00
simshaun
0baa8ac62e
Fixed showLabel() removing all classes from error element. Remove only settings.validClass. Fixes #151 .
2011-07-28 13:16:17 +02:00
Jörn Zaefferer
5ba0df45c1
Update delegation selectors to get rid of pseudo-selectors in favor of qSA. Use type=email on main demo for some manual verification. Update changelog.
2011-07-28 12:10:45 +02:00
lukesleeman
0515eac8da
Added in support for HTML 5 input types
2011-07-28 11:48:18 +02:00
Helmer Aaviksoo
a10b196ad3
pass event on to on<event_name> functions
2011-05-06 11:55:32 +03:00
Haacked
393ccabc07
Fixed issue 78. Error/Valid styling applies to all radio buttons of same group for required validation.
2011-05-05 13:34:23 +02:00
Jörn Zaefferer
3a42224bf6
Don't use form.elements as that isn't supported in jQuery 1.6 anymore.
...
ITs buggy as hell anyway (IE6-8: form.elements === form).
2011-04-26 21:51:23 +02:00
jzaefferer
95c7f65e34
Evaluate message before storing it for reuse. Fixes #11 Bug in remote validation (re-focus bug)
2011-03-22 12:22:56 +01:00
jzaefferer
125e124b69
Extract version into version.txt and add header two additional-methods.js
2011-03-20 12:18:51 +01:00
jzaefferer
78373090fa
Remove Julian from header. Thanks for the remote fix anyway!
2011-02-26 23:24:01 +01:00
jaubourg
5dd8f0865f
Fixes jQuery 1.5- code by using jQuery.ajaxSettings and not window.ajaxSettings (yeah, that was dumb).
2011-02-02 23:18:31 +01:00
jaubourg
ec7b8b12e6
Quick, untested patch to make the plugin compatible with jQuery 1.5 and fix potential bugs in its ajax proxy for earlier versions. Version tagged as 1.7+, minified version provided.
2011-02-02 16:54:04 +01:00
jzaefferer
10d0d9b15f
Fixed the broken testsuite, with an update to current QUnit. A few tests still broken.
2011-01-28 17:15:32 +01:00
jzaefferer
4ae4d5257d
Fixed missing var statements within for-in loops
2010-12-19 20:43:14 +01:00
Brian Cardarella
339da6ef54
Group radio/checkboxes will respect ignored elements
2010-07-15 22:25:09 +08:00
jzaefferer
1b464f32b3
Tests and fix for focusCleanup with wrapper
2010-07-14 18:23:08 +02:00
Jörn Zaeffferer
210377fd97
preparing 1.7 release
2010-03-09 21:58:06 +00:00
Jörn Zaeffferer
7851551103
Bugfixes for compability with jQuery 1.4.2, while maintaining backwards-compability
2010-03-09 19:38:36 +00:00
Jörn Zaeffferer
1212a9717f
Bugfixes for compability with jQuery 1.4.2, while maintaining backwards-compability
2010-03-09 19:00:22 +00:00
Jörn Zaeffferer
6ba056b138
Bugfixes for compability with jQuery 1.4.2, while maintaining backwards-compability
2010-03-08 23:31:24 +00:00
Jörn Zaeffferer
2c2da0a540
Deep extend options to avoid modifying multiple forms when using the rules-method on a single element ( http://plugins.jquery.com/node/12411 )
2010-02-10 10:22:07 +00:00
Jörn Zaeffferer
18ca28c499
Fixed four missing semicolons ( http://plugins.jquery.com/node/12639 )
2010-01-25 18:27:18 +00:00
Jörn Zaeffferer
b10c527ced
preparing 1.6 release
2009-11-30 20:06:43 +00:00
Jörn Zaeffferer
ebcaa693de
* Fixed errorsFor method where the for-attribute contains characters that need escaping to be valid inside a selector ( http://plugins.jquery.com/node/9611 )
2009-11-30 19:50:20 +00:00
Jörn Zaeffferer
c28ba85772
* Fixed an issue with :filled/:blank somewhat caused by Sizzle ( http://plugins.jquery.com/node/11144 )
2009-11-30 18:37:20 +00:00
Jörn Zaeffferer
ce09691a35
* Added automatic detection of substitution parameters in messages, removing the need to provide format functions ( http://plugins.jquery.com/node/11195 )
2009-11-30 18:25:47 +00:00
Jörn Zaeffferer
2677d0c604
* Fixed issue with cached remote message ( http://plugins.jquery.com/node/11029 and http://plugins.jquery.com/node/9351 )
2009-11-30 09:42:57 +00:00
Jörn Zaeffferer
cc1289bf04
Fix for http://plugins.jquery.com/node/9853
2009-11-25 13:58:56 +00:00
Jörn Zaeffferer
d35485a378
* Simplified select validation, delegating to jQuery's val() method to get the select value; should fix http://plugins.jquery.com/node/11239
2009-11-23 22:20:29 +00:00
Jörn Zaeffferer
d98ab2d886
* Bind to blur event for equalTo target to revalidate when that target changes, fixes http://plugins.jquery.com/node/11450
2009-11-23 20:56:14 +00:00
Jörn Zaeffferer
7c5d366b08
* Improved interactive select validation, now validating also on click (via option or select, inconsistent across browsers); doesn't work in Safari, which doesn't trigger a click event at all on select elements; fixes http://plugins.jquery.com/node/11520
2009-11-23 20:25:11 +00:00
Jörn Zaeffferer
d5a2aef50f
validate: Fixed remote form submit synchronization, kudos to Matas Petrikas
2009-11-06 15:46:37 +00:00
Jörn Zaeffferer
af52097a0e
validate: Added localized methods for DE, NL and PT_BR, removing the dateDE and numberDE methods (use messages_de.js and methods_de.js with date and number methods instead)
2009-10-21 08:40:02 +00:00
Jörn Zaeffferer
acb5c9226c
validate: * Fixed two accidental global variables
2009-09-15 08:07:06 +00:00