Commit Graph

283 Commits

Author SHA1 Message Date
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
Jörn Zaefferer
315189301a Add plugin manifest and update headers to just MIT license, drop unnecessary dual-licensing (like jQuery). 2013-01-22 22:21:43 +01:00
Yoav Ram
4fe282c4bd Hebrew messages: Removed dots at end of sentences - Fixes gh-568
The dots are not necessary and they sometimes display on the wrong side of the sentence
2013-01-09 17:07:10 +01:00
Pat Heard
65403a3269 French translation for require_from_group validation. Fixes gh-573. 2013-01-09 16:59:34 +01:00
IamDavidovich
b82d8cc1db Allow groups to be an array or a string - Fixes #479
Field names can contain spaces (as they are a CDATA type). This causes problems with groups, as the string listing the fields is split on spaces.

This commit allows the groups option to be either a space-separated string or an array of strings so that field names with spaces can be added. It also adds a unit test to ensure that both string and array based groups are processed into the same data structures.
2012-12-10 12:59:37 +01:00
Jörn Zaefferer
696452f636 Whitespace 2012-12-10 12:41:08 +01:00
Michael Phillips
2fbe406995 Removed spaces with multiple MIME types
If multiple MIME-types are specified, this will get rid of any extra spaces between them.

`audio/mp3, audio/m4v`

becomes

`audio/mp3,audio/m4v`

for parsing successfully.
2012-12-06 17:52:02 -05:00
Jörn Zaefferer
3d02806333 Whitespace/indent fixes 2012-11-26 13:50:28 +01:00
Nick Schonning
238965c74f All tabs for localizations
Corrected double space
2012-11-26 13:43:07 +01:00