Commit Graph

305 Commits

Author SHA1 Message Date
Jörn Zaefferer
b51e86f558 Add extra unit test for zipcodeUS method, based on GH comment 2013-05-20 15:53:31 +02:00
rstaib
ed51405d84 Add validation method for BIC. Closes gh-743 2013-05-14 18:11:41 +02:00
Jörn Zaefferer
059dbd41b0 Update grunt dependencies 2013-05-12 17:00:00 +02:00
Jörn Zaefferer
c7c621790a Update demos: Basic cleanup, no more metadata. Fixes #708 2013-05-12 16:44:33 +02:00
TaeyoungYoon
5da3085ff0 Update messages_ko.js - closes gh-715
fixed a few misspelled words and refined unnatural places
2013-05-12 15:44:08 +02:00
Strand McCutchen
165005d4b5 Verify nine-digit zip codes. Closes gh-726 2013-05-12 15:17:16 +02:00
Jörn Zaefferer
72f179f1c9 Update demos and tests to jQuery 1.9.1 2013-05-12 15:03:43 +02:00
Veres Lajos
f79e647f9f typo fixes 2013-05-08 14:35:26 +01:00
Nick Schonning
6e354b5029 Add instructions for reporting an issue 2013-05-06 14:53:21 -03:00
Nick Schonning
2dd76f73b7 Add jQuery style guide link 2013-05-06 14:47:39 -03:00
Jörn Zaefferer
1122c04baf Fix multipart demo 2013-04-28 23:02:32 +02:00
Nick Schonning
69bb292fc4 Update Grunt install instructions
The grunt package is no longer installed globally. The global runner has moved to the CLI package with Grunt in the local node_modules folder.
2013-03-22 17:13:29 -03:00
Jörn Zaefferer
493c0c3772 Bump post-release version 2013-03-22 15:19:48 +01:00
Jörn Zaefferer
3b39aec630 Release 1.11.1 1.11.1 2013-03-22 15:17:51 +01:00
jcbowman
10d90529c9 Revert to also converting parameters of range method to numbers. Closes gh-702
Unlike min/max, there's no range attribute in html5. For dates, min/max can be used.
2013-03-22 14:58:17 +01:00
Jörn Zaefferer
8250adb140 Replace most usage of PHP with mockjax handlers. Do some demo cleanup as well, update to newer masked-input plugin. Keep captcha demo in PHP. Fixes #662 2013-03-20 15:40:10 +01:00
Jörn Zaefferer
ff5e4f626d Remove inline code highlighting from milk demo. View source works fine. 2013-03-20 15:09:29 +01:00
Jörn Zaefferer
c73d5d7342 Fix dynamic-totals demo by trimming whitespace from template content before passing to jQuery constructor 2013-03-20 13:28:09 +01:00
Erik van Konijnenburg
5b114e10db Fix min/max validation. Closes gh-666. Fixes #648
In 1.10.0, min/max validation was supported for input type="text",
where min/max were interpreted as numbers.  This means min/max
for date would not work: min="2012-02-13" was interpreted as min="Not a Number".

In 1.11.0, min/max were no longer converted to numbers.  This means
min/max for dates worked, but min/max for numbers failed:
"50" < "150" < "1000" does not hold.

For an example, see http://jsbin.com/awokex/3

This commit makes the behaviour of min/max dependent on input type:

 * input type=text (or not type attribute) has numeric min/max, as in 1.10.0
 * input type=date has working min/max for type date;
   on mobile browsers you also get a date picker,
   plus the browser may reject invalid dates before
   javascript gets a chance to complain.
 * input type=number or range get numeric min/max,
   plus numeric keypad or slider on mobile browsers,
   plus browser may reject invalid input before javascript
   gets a chance to complain

Allowing use of min/max with type=number/range/date is important
for mobile browsers, where the numeric keypad or date picker
make the input much easier to use than a generic text input field.
In this situation jquery-validate remains necessary to support
older browsers that do not do input validation based on type
and min/max.

For situations where numeric input should be validated by jquery
without giving the browser a chance to validate the input format,
input type=text in combination with min/max can be used, as in 1.10.0.
2013-03-20 13:17:58 +01:00
Bogdan Litescu
4a134b6db6 Fixed 'messages' coming up as a rule and causing an exception after being updated through rules("add"). Closes gh-670, fixes #624 2013-03-20 12:49:25 +01:00
DexterPark
51f9109958 Add Korean (ko) localization. Closes gh-671 2013-03-20 12:22:52 +01:00
James Thompson
bbbf87903d Improved the UK postcode method to filter out more invalid postcodes. Closes #682
Old one allows integers between 5-7 digits which is not valid.

New one is still case insensitive and allows spaces & fixes the above issue.
2013-03-20 12:19:20 +01:00
Niklas Nilsson
cc810a217d Update messages_sv.js. Closes #683
Fixed invalid HTML entities that made dateISO error look funny.
2013-03-20 12:13:09 +01:00
Nick Schonning
28fc5caf3d Change grunt link to the project website. Closes #684
Has more useful getting started information for those unfamiliar with Grunt.
2013-03-20 12:03:09 +01:00
Nick Schonning
58ee5e219c Update QUnit to 1.11 2013-03-19 23:15:35 -04:00
Nick Schonning
38e28e04b1 Remove phantomjs version checking
Grunt uses its own version in grunt-contrib-qunit
2013-03-17 17:45:47 -03:00
Jörn Zaefferer
d1a53b151a Move remote method down the list to run last, after all other methods applied to a field. Fixes #679 2013-03-09 14:25:24 +01:00
Jörn Zaefferer
15964e0767 Update plugin.json description, should include the word 'validate' 2013-03-09 12:07:24 +01:00
jzaefferer
4a51e71c6f Fix typos 2013-03-07 13:55:35 +01:00
Jörn Zaefferer
8fc08ed16c Fix jshint usage in gruntfile 2013-03-02 19:08:19 +01:00
Jörn Zaefferer
52b2d81156 Fix jQuery loader to use path of itself. Fixes nested demos. 2013-03-02 18:01:40 +01:00
Jörn Zaefferer
af2b388782 Update grunt-contrib-qunit to make use of PhantomJS 1.8, when installed through node module 'phantomjs' 2013-02-28 18:04:21 +01:00
Jörn Zaefferer
93bab6e916 Make valid() return a boolean instead of 0 or 1. Fixes #109 - valid() does not return boolean value 2013-02-28 16:17:43 +01:00
Jörn Zaefferer
cef7bdfb17 Travis: Log phantomjs version, since 1.8.x is needed for better date parsing 2013-02-28 12:04:21 +01:00
Jörn Zaefferer
17b2795484 Fix lint error in new iban method 2013-02-27 17:35:35 +01:00
Jörn Zaefferer
5973321a6e Don't use DOM attributes or properties directly, for jQuery's valHooks to apply everywhere. Fixes #44 2013-02-27 16:53:24 +01:00
Burkhard Reffeling
574934360f Deprioritised more specific validators (min, max) to not interfere with less specific ones (number, date). Closes gh-640 2013-02-27 16:10:23 +01:00
Robbert Wethmar
509e6e3619 Add additional, dutch-specific methods: phone, mobile, postal, bank and giro account
add dutch phone number validation
2013-02-27 15:43:06 +01:00
Robbert Wethmar
581ccd80ec Added iban validation. Closes gh-630 2013-02-27 14:27:22 +01:00
Jörn Zaefferer
58dece930a Add tests for phoneUK method 2013-02-27 14:07:05 +01:00
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
Jörn Zaefferer
456a93b003 Update to jshint 1.0.0 (grunt-jshint 0.2.0), fix the one error it points at. Small cleanup in Gruntfile.js 2013-02-27 13:11:37 +01:00
Nick Schonning
5e3a24d262 Migrate to Grunt v0.4.0
min to uglify
zip to grunt-zipstream
lint to jshint
Install grunt-cli for Travis-CI
Fix license header
2013-02-26 02:59:49 -05: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
Jörn Zaefferer
ff26f320c6 Fix post-release version 2013-02-05 10:19:27 +01:00
Jörn Zaefferer
0996fc4cf2 Bump post-release version 2013-02-04 12:24:04 +01:00
Jörn Zaefferer
8caa0b7480 Release 1.11.0 1.11.0 2013-02-04 12:22:06 +01:00
Jörn Zaefferer
b84db8398e Readme update 2013-02-04 12:17:34 +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
Jörn Zaefferer
a047634196 Revert back to checking for name attribute only when debug flag is set. Never throw an exception here. Fixes #621
Revert "Improve error handling when no element is missing its name attribute. Still need to set debug flag to see exception."

This reverts commit 22edeaf28f.
2013-02-04 12:02:27 +01:00