Skip to content

Commit 2bad13d

Browse files
committed
Closing up on 2.2 release
1 parent 7c2f0e9 commit 2bad13d

14 files changed

+210
-185
lines changed

README.md

Lines changed: 38 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -227,37 +227,38 @@ object into the validation function.
227227

228228
```javascript
229229
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-
badInt : 'The input value was not a correct number',
246-
badSecurityNumber : 'Your social security number was incorrect',
247-
badUKVatAnswer : 'Incorrect UK VAT Number',
248-
badStrength : 'The password isn\'t strong enough',
249-
badNumberOfSelectedOptionsStart : 'You have to choose at least ',
250-
badNumberOfSelectedOptionsEnd : ' answers',
251-
badAlphaNumeric : 'The input value can only contain alphanumeric characters ',
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 ',
252253
badAlphaNumericExtra: ' and ',
253-
wrongFileSize : 'The file you are trying to upload is too large (max %s)',
254-
wrongFileType : 'Only files of type %s is allowed',
255-
groupCheckedRangeStart : 'Please choose between ',
256-
groupCheckedTooFewStart : 'Please choose at least ',
257-
groupCheckedTooManyStart : 'Please choose a maximum of ',
258-
groupCheckedEnd : ' item(s)',
259-
badCreditCard : 'The credit card number is not correct',
260-
badCVV : 'The CVV number was not correct'
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'
261262
};
262263
```
263264

@@ -311,7 +312,13 @@ of validation that should be applied.
311312
* Use the attribute data-validation-confirm to declare which input that should be confirmed when using validation=confirmation (issue #112)
312313
* Validation "required" now supports inputs of type radio
313314
* $.validateForm is now deprecated, use $.isValid instead
314-
315+
* Possible to check if form is valid programmatically without showing error messages
316+
* Select elements can now be validated server-side
317+
* Cleaned up dialog object
318+
* Various IE8 fixes
319+
* Possible to send along parameters to the server when using server side validation
320+
* Improved/simplified URL validation
321+
* ... and a whole lot more small improvements
315322

316323
#### 2.1.47
317324
* Incorrect error-styling when using datepicker or suggestions is now fixed

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.beta.69
13+
* @version 2.2.beta.85
1414
*/
1515
(function($) {
1616

form-validator/file.dev.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @website http://formvalidator.net/
1212
* @license Dual licensed under the MIT or GPL Version 2 licenses
13-
* @version 2.2.beta.69
13+
* @version 2.2.beta.85
1414
*/
1515
(function($, window) {
1616

@@ -37,16 +37,16 @@
3737
* @param {String} insert
3838
* @param {Object} lang
3939
*/
40-
_generateErrorMsg = function(obj, key, insert, lang) {
41-
var msg = lang[key];
40+
_generateErrorMsg = function(obj, key, insert, lang) {
41+
var msg = lang[key] || '';
4242
obj.errorMessageKey = ''; // only use message attached to this object
4343
obj.errorMessage = msg.replace('\%s', insert);
4444
},
4545

4646
/**
4747
* @param {String} msg
4848
*/
49-
_log = function(msg) {
49+
_log = function(msg) {
5050
if( window.console && window.console.log ) {
5151
window.console.log(msg);
5252
}
@@ -88,7 +88,7 @@
8888

8989
} else {
9090
_log('FileReader not supported by browser, will check file extension');
91-
return $.formUtils.validators.validate_extension.validatorFunction(str, $input);
91+
return $.formUtils.validators.validate_extension.validatorFunction(str, $input, conf, language);
9292
}
9393
},
9494
errorMessage : '',

form-validator/file.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/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.beta.69
20+
* @version 2.2.beta.85
2121
*/
2222
(function($, window) {
2323

0 commit comments

Comments
 (0)