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
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
70687768e2
Fix line endings. Very late follow-up to ab74256
2013-01-31 01:02:06 +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
22edeaf28f
Improve error handling when no element is missing its name attribute. Still need to set debug flag to see exception.
2013-01-31 00:44:34 +01:00
Jörn Zaefferer
fddd3b70dc
Remove old build cruft
2013-01-31 00:32:43 +01:00
Robert
0d394a7418
Updated coding style
2013-01-31 00:29:28 +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
Jörn Zaefferer
7763d4572d
Include pledige counter in readme
2013-01-30 23:44:39 +01:00
Jörn Zaefferer
e3106d3892
Use 1.9.0 in demo/index, replace old jQuery version with 'version switcher'
2013-01-30 23:19:47 +01:00
John-Philip Johansson
0681cc06c5
Added jQuery 1.9 to the project. Closes gh-613
2013-01-30 23:14:20 +01:00
Nick Schonning
ab74256e54
Add basic gitattributes file. Closes gh-612
2013-01-30 22:54:34 +01:00
juadielon
72345a461e
Fix mimetype regex
...
Regex was only replacing the first * when having multiple mimetypes.
For example image/*,video/*
2013-01-24 11:43:48 +01:00