Skip to content

Commit 9141054

Browse files
committed
new release: 2.2.43
1 parent b288e1f commit 9141054

19 files changed

+36
-91
lines changed

README.md

Lines changed: 18 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ it's designed to require as little bandwidth as possible. This is achieved by gr
66
in "modules", making it possible for the programmer to load **only those functions that's needed** to validate a
77
particular form.
88

9-
**Form demos and full documentation is available at http://formvalidator.net/**
9+
**Form demos and full documentation available at http://formvalidator.net/**
1010

1111
*Usage example*
1212

@@ -78,6 +78,7 @@ Read the documentation for the default features at [http://formvalidator.net/#de
7878
* **CVV**
7979
* **strength***Validate the strength of a password*
8080
* **server***Validate value of input on server side*
81+
* **letternumeric***Validate that the input value consists out of only letters and/or numbers*
8182

8283
Read the documentation for the security module at [http://formvalidator.net/#security-validators](http://formvalidator.net/#security-validators)
8384

@@ -99,7 +100,8 @@ Read the documentation for the location module at [http://formvalidator.net/#loc
99100
### Module: file
100101
* **mime**
101102
* **extension**
102-
* **size**
103+
* **size** (file size)
104+
* **dimension** ()
103105

104106
Read the documentation for the file module at [http://formvalidator.net/#file-validators](http://formvalidator.net/#file-validators)
105107

@@ -218,78 +220,10 @@ Read about how to customize this plugin over at [http://formvalidator.net/#confi
218220
### Validate On Event ###
219221
You can cause an element to be validated upon the firing of an event, by attaching an attribute to the form input element named `data-validation-event="click"`. When the configuration settings have `validateOnEvent : true`, the click event will trigger the onBlur validaton for that element. Possible use case: Checkboxes. Instead of waiting for the checkbox to lose focus (blur) and waiting for a validation to occurr, you can specify that elements validation should occur as soon as that checkbox element is clicked.
220222

221-
222223
## Localization
223-
This plugin contains a set of error dialogs. In case you don't define an inline error message the plugin
224-
will fall back on one of the dialogs below. You can how ever add the attribute *data-validation-error-msg* to an
225-
element, and that message will be displayed instead. All error dialogs can be overwritten by passing an
226-
object into the validation function.
227-
228-
```javascript
229-
var enErrorDialogs = {
230-
errorTitle: 'Form submission failed!',
231-
requiredFields: 'You have not answered all required fields',
232-
badTime: 'You have not given a correct time',
233-
badEmail: 'You have not given a correct e-mail address',
234-
badTelephone: 'You have not given a correct phone number',
235-
badSecurityAnswer: 'You have not given a correct answer to the security question',
236-
badDate: 'You have not given a correct date',
237-
lengthBadStart: 'The input value must be between ',
238-
lengthBadEnd: ' characters',
239-
lengthTooLongStart: 'The input value is longer than ',
240-
lengthTooShortStart: 'The input value is shorter than ',
241-
notConfirmed: 'Input values could not be confirmed',
242-
badDomain: 'Incorrect domain value',
243-
badUrl: 'The input value is not a correct URL',
244-
badCustomVal: 'The input value is incorrect',
245-
andSpaces: ' and spaces ',
246-
badInt: 'The input value was not a correct number',
247-
badSecurityNumber: 'Your social security number was incorrect',
248-
badUKVatAnswer: 'Incorrect UK VAT Number',
249-
badStrength: 'The password isn\'t strong enough',
250-
badNumberOfSelectedOptionsStart: 'You have to choose at least ',
251-
badNumberOfSelectedOptionsEnd: ' answers',
252-
badAlphaNumeric: 'The input value can only contain alphanumeric characters ',
253-
badAlphaNumericExtra: ' and ',
254-
wrongFileSize: 'The file you are trying to upload is too large (max %s)',
255-
wrongFileType: 'Only files of type %s is allowed',
256-
groupCheckedRangeStart: 'Please choose between ',
257-
groupCheckedTooFewStart: 'Please choose at least ',
258-
groupCheckedTooManyStart: 'Please choose a maximum of ',
259-
groupCheckedEnd: ' item(s)',
260-
badCreditCard: 'The credit card number is not correct',
261-
badCVV: 'The CVV number was not correct'
262-
};
263-
```
264-
265-
```html
266-
<form action="script.php">
267-
...
268-
</form>
269-
<script src="js/jquery.min.js"></script>
270-
<script src="js/form-validator/jquery.form-validator.min.js"></script>
271-
<script src="js/form-validator/locale.en.js"></script>
272-
<script>
273-
$.validate({
274-
language : enErrorDialogs
275-
});
276-
</script>
277-
...
278-
```
279224

280-
It's also possible to add inline error messages. If you add attribute `data-validation-error-msg` to an element the value of
281-
that attribute will be displayed instead of the error dialog that the validation function refers to.
282-
283-
## Input length restriction
284-
```html
285-
<p>
286-
History (<span id="maxlength">50</span> characters left)
287-
<textarea rows="3" id="area"></textarea>
288-
</p>
289-
<script type="text/javascript">
290-
$('#area').restrictLength( $('#maxlength') );
291-
</script>
292-
```
225+
This plugin comes with translations for English, German, French Spanish and Swedish. You can also choose to override the error
226+
dialogs yourself. Here you can read more about [localization](http://formvalidator.net/#localization)
293227

294228
## Program Flow
295229
Form submit() event is bound to jQ func **validateForm()** when the form is submitted, it calls
@@ -302,6 +236,17 @@ it calls jQ func **$.formUtils.validateInput** to validate the single input when
302236

303237
## Changelog
304238

239+
240+
#### 2.2.43
241+
- Fixed min/max parse error in HTML5 module
242+
- Now also supports Twitter bootstraps horizontal forms
243+
- This plugin now also distributes a default CSS theme including success/fail icons (used on formvalidator.net)
244+
- Email validation now won't fail if email begins with a number
245+
- This plugin now comes with error dialogs translated to English, French, German, Spanish and English.
246+
- New validator `letternumeric`. Validates that input consists out of any type of letter (not only alphanumeric) and/or numbers
247+
- You can now validate image dimension and ratio
248+
- ... and a bunch of other smaller bug fixes and improvements.
249+
305250
#### 2.2.0
306251
* Now possible to define an error message for each validation rule on a certain input (issue #113)
307252
* This plugin now serves as a html5 fallback. You can now use the native attributes to declare which type
@@ -359,7 +304,7 @@ calling $.validate()
359304
the $.validationSetup but it's considered deprecated.
360305

361306
#### 2.1.6
362-
* Modules can now be loaded from remote website
307+
* Modules can now be loaded from remote websites
363308

364309
#### 2.1.5
365310
* Fixed language bug (issue #43 on github)

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jQuery-Form-Validator",
3-
"version": "2.2.1",
3+
"version": "2.2.43",
44
"homepage": "http://formvalidator.net/",
55
"authors": [
66
"victorjonsson"

form-validator/date.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @website http://formvalidator.net/#location-validators
1212
* @license Dual licensed under the MIT or GPL Version 2 licenses
13-
* @version 2.2.42
13+
* @version 2.2.43
1414
*/
1515
(function($) {
1616

form-validator/file.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @website http://formvalidator.net/#file-validators
1212
* @license Dual licensed under the MIT or GPL Version 2 licenses
13-
* @version 2.2.42
13+
* @version 2.2.43
1414
*/
1515
(function($, window) {
1616

form-validator/html5.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
* @website http://formvalidator.net/
1919
* @license Dual licensed under the MIT or GPL Version 2 licenses
20-
* @version 2.2.42
20+
* @version 2.2.43
2121
*/
2222
(function($, window) {
2323

form-validator/jquery.form-validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* @website http://formvalidator.net/
77
* @license Dual licensed under the MIT or GPL Version 2 licenses
8-
* @version 2.2.42
8+
* @version 2.2.43
99
*/
1010
(function ($) {
1111

form-validator/jquery.form-validator.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

form-validator/jsconf.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* @website http://formvalidator.net/#location-validators
99
* @license Dual licensed under the MIT or GPL Version 2 licenses
10-
* @version 2.2.42
10+
* @version 2.2.43
1111
*/
1212
(function($) {
1313

form-validator/lang/de.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* @website http://formvalidator.net/
88
* @license Dual licensed under the MIT or GPL Version 2 licenses
9-
* @version 2.2.42
9+
* @version 2.2.43
1010
*/
1111
(function($, window) {
1212

form-validator/lang/es.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* @website http://formvalidator.net/
88
* @license Dual licensed under the MIT or GPL Version 2 licenses
9-
* @version 2.2.42
9+
* @version 2.2.43
1010
*/
1111
(function($, window) {
1212

form-validator/lang/fr.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* @website http://formvalidator.net/
88
* @license Dual licensed under the MIT or GPL Version 2 licenses
9-
* @version 2.2.42
9+
* @version 2.2.43
1010
*/
1111
(function($, window) {
1212

form-validator/lang/sv.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* @website http://formvalidator.net/
88
* @license Dual licensed under the MIT or GPL Version 2 licenses
9-
* @version 2.2.42
9+
* @version 2.2.43
1010
*/
1111
(function($, window) {
1212

form-validator/location.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @website http://formvalidator.net/#location-validators
1212
* @license Dual licensed under the MIT or GPL Version 2 licenses
13-
* @version 2.2.42
13+
* @version 2.2.43
1414
*/
1515
(function($) {
1616

form-validator/security.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* - cvv
1414
*
1515
* @website http://formvalidator.net/#security-validators
16-
* @version 2.2.42
16+
* @version 2.2.43
1717
*/
1818
(function($, window) {
1919

form-validator/sweden.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
* @website http://formvalidator.net/#swedish-validators
1515
* @license Dual licensed under the MIT or GPL Version 2 licenses
16-
* @version 2.2.42
16+
* @version 2.2.43
1717
*/
1818
(function($, window) {
1919

form-validator/theme-default.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

form-validator/toggleDisabled.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* @website http://formvalidator.net/
1010
* @license Dual licensed under the MIT or GPL Version 2 licenses
11-
* @version 2.2.42
11+
* @version 2.2.43
1212
*/
1313
(function($, window, undefined) {
1414

form-validator/uk.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* @website http://formvalidator.net/#uk-validators
1111
* @license Dual licensed under the MIT or GPL Version 2 licenses
12-
* @version 2.2.42
12+
* @version 2.2.43
1313
*/
1414
$.formUtils.addValidator({
1515
name : 'ukvatnumber',

formvalidator.jquery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"validation",
88
"validator"
99
],
10-
"version" : "2.2.1",
10+
"version" : "2.2.43",
1111
"author" : {
1212
"name": "Victor Jonsson",
1313
"url": "http://victorjonsson.se",

0 commit comments

Comments
 (0)