Jörn Zaefferer
2ad0ca82da
Core: Stop trimming value inside required method
...
There was never much of a point anyway, and it causes problems.
Fixes #1498
2015-06-16 19:50:11 +02:00
Jesus
f59bb1389f
Localization: Adding Perú Spanish (ES PE)
...
Closes #1483
2015-05-14 19:15:59 +02:00
Merab Tato Kutalia
5dcc17ea0d
Localization: Adding Georgian (ქართული, ge)
...
Closes #1453
2015-05-12 13:40:09 +02:00
Carles Jove i Buxeda
d0bad78cf5
Localization: Fixed typo in catalan translation
...
Closes #1460
2015-05-12 13:38:32 +02:00
Darshan Jani
41bc9825b9
Tests: Update to QUnit 1.18.0
...
Closes #1467
2015-05-12 13:37:36 +02:00
Shimmy
f37c2d8131
Core: Use :disabled selector to match disabled elements
...
This also applies to elements that are inside a fieldset with a disabled
attribute, causing an inherited disabled state. Only matching the disabled
attribute directly won't capture that.
Closes #1474
2015-05-12 13:31:35 +02:00
Pietu1998
1b493ed0e4
Localization: Improve Finnish (fi) translation
...
The current Finnish translations are partially wrong and partially
clumsy. This change should improve them. Finnish is really a hard
language to equivalently and clearly translate some strings to.
Closes #1475
2015-05-12 13:28:20 +02:00
Brahim Arkni
63cb473c21
Core: Exclude some keyboard keys to prevent revalidating the field
...
Avoid revalidate the field when pressing one of the following keys
in 'onkeyup' method:
Shift => 16
Alt => 18
Caps lock => 20
End => 35
Home => 36
Left arrow => 37
Up arrow => 38
Right arrow => 39
Down arrow => 40
Insert => 45
Num lock => 144
AltGr key => 225
This helps especially with the remote method, which has a lot of
overhead.
Closes #1411
2015-02-24 19:40:35 +01:00
Jörn Zaefferer
93e614774c
Tests: Update to QUnit 1.17.1
2015-02-17 12:25:57 +01:00
Markus Staab
64d6d7f751
Core: Do not search the whole DOM for radio/checkbox elements
...
Fixes #1056
Closes #1064
2015-02-17 12:21:34 +01:00
Jörn Zaefferer
60dd41053d
Additionals: Drop bad test for notEqualTo method
2015-02-17 12:12:30 +01:00
Daniel DeGroff
c4b891e837
Additionals: Add notEqualTo method
...
New method ‘notEqualTo’ that delegates to the equalTo method and
returns the inverted value.
Closes #1020
2015-02-17 12:04:24 +01:00
Jörn Zaefferer
7a632246be
Tests: Replace jQuery#size() with #jQuery.length
...
Apparently newer jQuery versions are removing size(), since length has
been around fover, use that instead.
2015-02-10 20:17:27 +01:00
Ajay Singh
a5fe09fcd2
Additionals: Use correct jQuery reference via $
...
All other validation methods are bound to $ but this one was bound to
'JQuery' , it is causing error when you have two versions of jQuery and
want to bind all these methods to one of jQuery instance.
Closes #1396
2015-02-10 16:10:02 +01:00
Ryley Breiddal
f3b1e415cf
Core: Throw better errors for bad rule methods
...
99% of type errors in this situation are misspelled rules, so be
specific in the throw
Closes #1395
2015-02-10 15:42:29 +01:00
James
e88f2ef98a
Revert "Core: Ignore readonly as well as disabled fields."
...
This reverts commit 9f4ba10ea7 .
Closes #1383
Closes #1300
Ref #1261
2015-01-29 12:19:26 +01:00
hanumanum
f582548015
Localization: Add armenian (hy_AM) locale
...
Closes #1382
2015-01-28 15:33:05 +01:00
wozzo
02b800d9af
Core: Fixed number validation error
...
A single minus sign is invalid.
Fixes #1359
Closes #1361
2015-01-20 16:46:57 +01:00
Jörn Zaefferer
0ebd0b1774
README: Move reporting issues to contributing, keep email method note
...
Also adds the warning to CONTRIBUTING.md, its worth duplicating. Added
a reference to addMethod for both.
2015-01-14 16:22:35 +01:00
Jörn Zaefferer
7e9495c31e
Core: Fix reference to whatwg spec
...
Ref #1372
2015-01-11 20:48:19 +01:00
Maks3w
a6c2a81d7f
Core: Focus invalid element when validating a custom set of inputs
...
Invalid element is not focused when validate a custom set of inputs and
the last one is a valid input. The issue is element method, via
prepareElement method, via reset method, resets errorList state after
validate each input so the global state of the validator is not
preserved.
Closes #1327
2014-12-16 16:03:49 +01:00
Manuel Dalla Lana
d80c469a31
Localization: Extend italian (it) translation with currency method
...
Closes #1357
2014-12-16 15:51:54 +01:00
Jörn Zaefferer
89b507a1c1
Build: Publish dist files on npm, add main directive
...
Fixes #1339
2014-12-16 15:47:56 +01:00
Jörn Zaefferer
2839a92a41
Demos: Remove the dead link to psyrens.com
2014-12-16 13:34:28 +01:00
Jörn Zaefferer
a97c71dca5
Demos: Fix bad default message in signup form
2014-12-16 13:32:30 +01:00
Jörn Zaefferer
59f871af1b
Additionals: Remove useless regex check in iban method
...
The check never matches anything, since it looks for a space that is removed
earlier. It also checks for both upper and lowercase letters, even though
the string can only consist of upper case.
Fixes #1237
2014-12-09 17:42:18 +01:00
Markus Staab
2040a8efc1
README: Added links to the docs repos
...
Closes #1315
2014-12-09 16:43:01 +01:00
Maks
535033dbd4
Core: Reset element styles when using custom highlight methods
...
When use a custom highlight functions which for example place the error
class in a different element (like Bootstrap form-group wrapper) this
element are not unhighlighted after resetForm.
Closes #1323
2014-12-02 17:38:58 +01:00
Jörn Zaefferer
f94ecf3cf0
Build: Update grunt-jscs to 1.0.0
2014-12-02 16:48:22 +01:00
a-barry
394a246d4a
Core: Escape dollar sign in error id
...
Fix non label error elements containing $ character in the name/id
(asp.net web forms) causing syntax error in sizzlejs.
Fixes #1331
Closes #1336
2014-12-02 16:37:38 +01:00
Markus Staab
0ff3b3c503
Demo: Added a tinymce4 demo
...
Closes #1340
2014-12-02 16:27:10 +01:00
Jörn Zaefferer
4d8ccab332
Build: Update commitplease to latest version
2014-12-02 16:17:58 +01:00
sekander
b8322260ef
Localization: Add bn_BD locale
...
Closes #1342
2014-12-02 16:13:39 +01:00
Igor
f39022c835
Core: Update link in comment for Luhn algorithm
...
Closes #1329
2014-11-20 13:40:13 +01:00
Jörn Zaefferer
3634bcc7af
Demos: Fix XSS issue in CAPTCHA demo
2014-11-19 13:31:22 +01:00
Michael J
4f8b07c4ce
Localization: Update zh locale
...
Closes #1302
2014-11-11 22:35:45 +01:00
Nadi
89034eb4d4
Additionals: Brazilian CPF number
...
Closes #1310
2014-11-11 22:33:42 +01:00
Stefano Stoduto
460ac6bb05
Localization: Remove full stop at the end of italian messages
...
It looks ugly to see a full stop at the end of an error message, and it
is worse if the message is used in dynamic context (e.g. in a kind of
popup message like a tooltip)
Also use the default (possibly localized) error message when a wrong date
is used instead of using a static message to improve flexibility, for all
three custom date methods.
Closes #1326
2014-11-11 22:00:05 +01:00
Jörn Zaefferer
a60224eeae
README: Update link to HTML spec about email validation
...
Fixes #1304
2014-10-22 11:33:56 +02:00
Jörn Zaefferer
44c0f77f65
Build: Cleanup gitignores, jscs settings, package descriptions
2014-10-17 16:11:38 +02:00
Jörn Zaefferer
eba03d644f
Build: Updating the master version to 1.13.2-pre.
2014-10-14 16:53:22 +02:00
Jörn Zaefferer
9d612675f4
Changelog: Prepare 1.13.1 release
2014-10-14 16:42:34 +02:00
fernandopasse
cc6c4a4fd6
Additionals: Add postalcodeBR method
...
Validates brazialian postal codes
Closes #1291
2014-10-14 16:28:31 +02:00
Jörn Zaefferer
52debd4509
Build: Update commitplease dependency to 1.11.0
2014-10-14 16:25:39 +02:00
Jörn Zaefferer
fe14d00a1d
Core: Allow 0 as value for autoCreateRanges
...
Closes #1293
2014-10-14 16:25:06 +02:00
Barry vd. Heuvel
4cecd73649
Additionals: Fix pattern method when parameter is a string
...
Reverts 37992c1c9e
The pattern should match the entire value of the input, not just a subset.
Closes #1204
2014-10-02 18:10:14 +02:00
colemanw
9f4ba10ea7
Core: Ignore readonly as well as disabled fields.
...
Closes #1261
Closes #1262
2014-09-23 13:50:32 +02:00
Jörn Zaefferer
d36d1bcb45
Core: Improve id escaping, store escaped id in describedby
...
Ref #1275
Fixes #1269
Closes #1273
2014-09-23 13:40:39 +02:00
Jörn Zaefferer
452b823c86
Core: Don't trim value in min/max/rangelength methods
...
Fixes #1274
2014-09-23 13:33:14 +02:00
Jörn Zaefferer
20f3e9fac9
Core: Escape id/name before using it as a selector in errorsFor
...
Fixes #1275
2014-09-23 13:27:51 +02:00