Commit Graph

913 Commits

Author SHA1 Message Date
James Thompson
1a981b4403 Methods: Add additional method for currency
Closes gh-701
2014-01-14 19:22:06 +01:00
ruado1987
a86421131e Core: Ignore events on ignored elements
When an ignored element produces a blur event, it causes the valid() method to
return the wrong value.

Fixes gh-700
Closes gh-705
2014-01-14 17:54:51 +01:00
Jörn Zaefferer
f7a259254c Core: Whitespace cleanup 2014-01-14 17:47:12 +01:00
joseph.bott
3f464a8da4 Core: Make element() handle ignored elements properly.
Allows ignored elements to be validated, removing any errors if necessary.

Closes gh-721
2014-01-14 17:45:56 +01:00
Martin Laine
5bebaa5c55 Core: Added support for generic messages via data-msg attribute
Closes gh-747
2014-01-14 17:34:38 +01:00
Jörn Zaefferer
279b932c12 Methods: Fix dateITA method, avoiding summertime errors
Using arbitrary hour or new Date() will use hour 00:00:00, which cause errors
on summertime changes.

Closes gh-773
2014-01-14 17:26:19 +01:00
Jörn Zaefferer
8c92533394 Core: Fix whitespace in updated methods 2014-01-14 17:21:06 +01:00
John Reilly
460fd22b6c Core: Switch dataRules parsing to W3C HTML5 spec style
Closes gh-778
2014-01-14 17:17:58 +01:00
Jörn Zaefferer
2afa4b75be Demos: Fix usage of $.format. Follow-up to bf3b350 2014-01-14 17:03:58 +01:00
Bruno Pinto
ad91b6f388 Core: make sure remote is executed last
Fixes gh-711
Closes gh-807
2014-01-14 16:58:29 +01:00
Floris Robbemont
0a18ae65b9 Added the current form to the context of the remote ajax request 2014-01-14 16:54:12 +01:00
Jamie R. Rytlewski
aa0d6241c3 Methods: Adding Smart Quotes to stripHTML's punctuation removal
Addresses an issue with the word count where smart quotes were not
removed, but the word count counted the words as the punctuation was not
removed.

Closes gh-811
2014-01-14 16:51:59 +01:00
Andrew Ray
f93e1deb48 Core: Trigger success on optional but have other successful validators
The comment in the code itself says "when there are no other rules" but does
nothing to enforce that comment.

Fixes gh-851
Closes gh-852
2014-01-14 16:36:29 +01:00
Thibaud Colas
adbc6361c3 Messages: Add missing dots to 'bg', 'fr' and 'sr' messages.
Closes gh-865
2014-01-14 16:34:03 +01:00
magic.xie
c1f0baf36c Core: Fix support for multiple error classes
String#replace with a string argument replaces just once, not all matches.

Closes gh-884
2014-01-14 16:21:27 +01:00
1darvesh
de830b3fd8 Messages: Create messages_tj.js
Added Tajik (Asia/Tajikistan) language

Closes gh-888
2014-01-14 16:18:24 +01:00
Sævar Öfjörð Magnússon
dc885753c8 Messages: Add icelandic localization
Closes gh-902
2014-01-14 16:16:23 +01:00
Max Toro
cf36b93349 Methods: Localized methods for chilean culture (es-CL)
Provides `date` and `number` implementations as overrides for `es-CL`

Closes gh-929
2014-01-14 16:06:52 +01:00
Predrag Stojadinovic
880ba1ca54 Messages: Fix sr_lat translation, add missing space
Closes gh-975
2014-01-14 16:03:59 +01:00
Predrag Stojadinovic
f2f9007651 Messages: Create messages_sr_lat.js
Serbian uses both Cyrilic and Latin alphabets. This is the Latin alphabet
version.

Closes gh-947
2014-01-14 15:57:57 +01:00
Predrag Stojadinovic
10313f418c Messages: Update messages_sr.js, fix missing space
Closes gh-948
2014-01-14 15:55:22 +01:00
Bart Sipes
bf3b350914 Core: Disable deprecated $.format
Throwing error if $.format is called and updated all deprecated calls to use
$.validator.format.

Fixes gh-755
Closes gh-971
2014-01-14 15:45:21 +01:00
Jörn Zaefferer
70ae69ed85 Grunt: Add 'start' task that concats and watches 2014-01-14 15:41:08 +01:00
Jörn Zaefferer
d865e4c5b8 Methods: Fix tests for email method. Follow-up to dd162ae 2014-01-14 15:30:20 +01:00
Jörn Zaefferer
dd162ae360 Methods: Update email to use HTML5 regex, remove email2 method
The regex provided by the HTML5 spec allows email addresses without a top level
domain, like name@localhost. That makes the email2 method pointless.

Hopefully this is the last time the email methods ever has to be updated. At
least it will make bug triage easier: If you don't like the implementation,
report an issue against the HTML5 spec.

Fixes gh-828
Closes gh-753
Closes gh-739
2014-01-14 15:27:29 +01:00
Pat Heard
d7a05b1c26 Add qunit tests for conditional validation rules
Updated tests for require_from_group and skip_or_fill_minimum rules.
The tests now check that other validation rules on the form are
enforced.
2013-12-02 10:25:07 -05:00
Pat Heard
e5207d63a8 Fix require_from_group and skip_or_fill_minimum
Stops the require_from_group and skip_or_fill_minimum validation
methods from clearing previous validation rules on a form.

It does this by creating a cloned copy of the form's validator for
each group of conditionally required fields.  This validator is then
used to validate field group and is stored for re-use (fixes #412).
2013-12-02 09:09:36 -05:00
Nick Schonning
3f84e2377b Add Instructions for getting the dist files
Moved remaining contributing instructions to Contributing guide
2013-10-30 15:43:03 -04:00
Nick Schonning
b358fa8656 Add build setup instructions 2013-10-30 15:29:16 -04:00
Nick Schonning
bf3cfb234e Initial ARIA-Required implementation
Add aria-required tags to any of the data, static or class required elements.
Dynamic validation for rules added through the form.validate rules object do not get picked up till first run.
2013-10-07 17:51:08 +02:00
Nick Schonning
4f8a631cbe resetForm should clear any aria-invalid values 2013-10-07 17:51:08 +02:00
Nick Schonning
3d5658e9e4 Add ARIA testing
Added new test suite for testing the ARIA-invalid features
Also added a few minor fixes for typos in the QUnit scaffolding and
JSHint errors
Fix "%o has no name assigned [object HTMLInputElement]" errors in bypassValidation tests
2013-10-07 17:51:08 +02:00
Nick Schonning
600e292463 Set aria-invalid attribute based on validation
As per http://www.w3.org/TR/wai-aria/states_and_properties#aria-invalid
the validation states should only be added after a user has had a chance
to enter a value
2013-10-07 17:51:08 +02:00
Wing
1a0bfe32b1 Improve Chinese translations
Make translation smooth

Closes gh-871
2013-09-05 00:24:28 -04:00
Nick Schonning
d967e47ea2 Delete todo since it has moved to #742 2013-08-23 23:13:58 -04:00
Dave Marr
2c48e2801b Fix path to dist folder in multipart demo
Closes gh-866
2013-08-22 20:44:22 -04:00
Alfonso Martín
317c20fa9b Added NIF, NIE and CIF Spanish documents numbers validation
* Added some translations to /localization
* Added test suite
Fixes gh-830
2013-08-22 01:06:08 -04:00
Nick Schonning
519bbc656b phoneUS: Add N11 exclusions. Closes gh-861
Numbers like 911 and 411 cannot be used for area or exchange codes.
https://en.wikipedia.org/wiki/NANPA#Numbering_system
2013-08-21 10:33:26 +02:00
Jörn Zaefferer
59bc899e45 Fix $/jQuery usage in additional methods. Fixes #839 2013-08-20 15:35:18 +02:00
Peter Conerly
f3f344f39c Fixed bug in RTM demo page. Closes gh-833 2013-08-15 13:52:07 +02:00
John Reilly
ae54bd54e1 Fix typo in date test. Closes gh-846 2013-08-15 13:46:25 +02:00
Jörn Zaefferer
37992c1c9e Pattern method: Remove delimiters, since HTML5 implementations don't include those either. 2013-08-15 13:44:50 +02:00
Nick Schonning
4ff23bb35a Add note about IE Compatibility modes
Issues continue to be filed for these, but the message has been clear (in the issues) that these are not supported platforms.
2013-08-08 22:37:34 -04:00
Juan M. Cuello
a2a653cb68 Add missing dots to 'es' and 'es_AR' messages. 2013-07-15 10:24:51 -03:00
Juan M. Cuello
7b30beb8eb Add es-AR localization messages. 2013-07-15 06:00:40 -03:00
Nick Schonning
f0e1948586 Update Contributing instructions now that additional-methods.js has been split
Additional minor formatting of the contributing guide
2013-06-27 12:36:23 -04:00
Andrew Ray
f5f47c5c66 Restricting credit card validator to include length check. Closes gh-772
Without this, '41111' is considered a valid credit card number.
2013-06-25 11:39:47 +02:00
Sérgio Rafael Siqueira
4bf813b751 Update messages_pt_BR.js. Closes gh-782 2013-06-25 11:37:36 +02:00
Nick Schonning
b033a1f75a Add EditorConfig settings for consistent indents. Closes gh-794
Helps ensure consistent indenting and encoding for editors with support.
2013-06-25 10:59:38 +02:00
Nick Schonning
12edec66eb Localization: change accept values to extension. Fixes #771, closes gh-793.
It appears at some point these keys where changed in the English side
but not for the localizations.
2013-06-25 10:56:59 +02:00