Commit Graph

913 Commits

Author SHA1 Message Date
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
bab8e84d75 Rewrite zip task to basic task, extracting the file list and zip file name. 2012-03-02 15:07:10 +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
emirpprime
aca2e93e91 Methods for 'all' UK phone numbers + UK postcodes
Prevent phone invalidation for ' ' or '-' inclusion

Spaces are standard notation, hyphens US style, both likely to occur in
otherwise valid numbers.
2012-02-28 13:23:48 +01: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
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
6f131d499b Merge pull request #311 from juristr/master
Grammar error in localization/messages_de.js
2012-01-31 08:16:36 -08:00
Juri Strumpflohner
9f7607eb4c grammar error in german localization file 2012-01-31 16:55:57 +01:00
Ando Roots
f9d413a28a Added Estonian localization for messages 2012-01-05 16:12:37 +02:00
Jörn Zaefferer
b130fd5402 Merge pull request #260 from okamototk/master
Fixed min's message broken in Japanese
2011-11-23 13:42:04 -08:00
Jörn Zaefferer
3d79fc8cc7 Improve tooltip handling on themerollered demo 2011-11-22 16:27:08 +01:00
Jörn Zaefferer
9050de7987 Add type='text' to input fields without type attribute to please qSA 2011-11-22 15:54:14 +01:00
Jörn Zaefferer
5f4a3a56d2 Add type="text" to input fields without type attribute to please qSA 2011-11-22 15:52:12 +01:00
Jörn Zaefferer
3a93b7ece3 Update themerollered demo to use tooltip to show errors as overlay. 2011-11-22 15:24:46 +01:00
Jörn Zaefferer
a6b4248e05 Update themerollered demo to use latest jQuery UI (along with newer jQuery version). Move code around to speed up page load. 2011-11-22 15:10:36 +01:00
Takashi Okamoto
3489a0b384 Fixed min error message broken in Japanese. 2011-11-22 16:23:55 +09: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
Jörn Zaefferer
bb64bc3621 Update form plugin to latest version. Enhance the ajaxSubmit demo. 2011-10-27 10:30:19 +02: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
Jörn Zaefferer
7b4ce9f4a5 Improve build to remove dist dir to ensure only the current release gets zipped up 2011-10-06 16:22:55 -04:00
Jörn Zaefferer
876b2891aa Bumping version to 2.0.0pre 2011-10-06 16:21:38 -04:00
Jörn Zaefferer
b5d5b45eb5 Tagging 1.9.0 release 1.9.0 2011-10-06 16:21:28 -04:00
Jörn Zaefferer
d9ab2d8b34 Bash script to help with releases 2011-10-06 16:14:50 -04:00
Jörn Zaefferer
45edcae570 Changelog update 2011-10-06 12:40:05 -04: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
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
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
Jörn Zaefferer
47cbaa24d6 Update changelog to include #181 2011-08-20 15:43:25 +02:00
Dag Brattli
f7f22a43d3 Bugfix for swedish translation. Messages for max and min needs to be swapped 2011-08-20 02:30:35 +03:00
Dag Brattli
ed2e005064 Bugfix for norwegian translation. Messages for max and min needs to be swapped 2011-08-20 02:23:48 +03: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
Jörn Zaefferer
b009f41fbf Cleanup whitespace 2011-07-28 20:14:56 +02:00
robertodecurnex
6b8f2c2b15 Adding the patter additional method 2011-07-28 20:13:54 +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
damner
dd23b0b556 Small syntax fix for russian localization file. 2011-07-28 12:28:25 +02:00
Peter Zlatnar
69cc7b451e Add Slovenian (SL) localization. 2011-07-28 12:16:05 +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