Skip to content

Commit ec7d9a6

Browse files
committed
final touches...
1 parent 84f1ce5 commit ec7d9a6

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

form-validator/date.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
*
1414
* @license Dual licensed under the MIT or GPL Version 2 licenses
15-
* @version 1.9.36
15+
* @version 1.9.37
1616
*/
1717
(function($) {
1818

form-validator/jquery.form-validator.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Documentation and issue tracking on Github <https://github.com/victorjonsson/jQuery-Form-Validator/>
66
*
77
* @license Dual licensed under the MIT or GPL Version 2 licenses
8-
* @version 1.9.36
8+
* @version 1.9.37
99
*/
1010
(function($) {
1111

@@ -109,7 +109,7 @@
109109
$element
110110
.removeClass(config.errorElementClass)
111111
.parent()
112-
.find('.jquery_form_error_message').remove();
112+
.find('.'+config.errorMessageClass).remove();
113113

114114
// if element has custom err msg container, clear it
115115
if( elementErrMsgObj != null) {
@@ -143,7 +143,7 @@
143143
if( elementErrMsgObj != null) {
144144
elementErrMsgObj.innerHTML = validation;
145145
} else { // use regular span append
146-
$element.parent().append('<span class="jquery_form_error_message">'+validation+'</span>');
146+
$element.parent().append('<span class="'+config.errorMessageClass+'">'+validation+'</span>');
147147
}
148148

149149
if(config.borderColorOnError !== '') {
@@ -274,7 +274,7 @@
274274
// Remove possible error messages from last validation
275275
//
276276
$('.' + $.split(config.errorMessageClass, ' ').join('.')).remove();
277-
$('.jquery_form_error_message').remove();
277+
$('.'+config.errorMessageClass).remove();
278278

279279
//
280280
// Run validation callback
@@ -316,11 +316,11 @@
316316
else {
317317
for (var i = 0; i < errorInputs.length; i++) {
318318
var $parent = errorInputs[i].parent();
319-
var $errorSpan = $parent.find('span[class=jquery_form_error_message]');
319+
var $errorSpan = $parent.find('span[class='+config.errorMessageClass+']');
320320
if ($errorSpan.length > 0) {
321321
$errorSpan.eq(0).text(errorInputs[i].valAttr('current-error'));
322322
} else {
323-
$parent.append('<span class="jquery_form_error_message">' + errorInputs[i].valAttr('current-error') + '</span>');
323+
$parent.append('<span class="'+config.errorMessageClass+'">' + errorInputs[i].valAttr('current-error') + '</span>');
324324
}
325325
}
326326
}
@@ -465,7 +465,7 @@
465465
ignore : [], // Names of inputs not to be validated even though node attribute containing the validation rules tells us to
466466
errorElementClass : 'error', // Class that will be put on elements which value is invalid
467467
borderColorOnError : 'red', // Border color of elements which value is invalid, empty string to not change border color
468-
errorMessageClass : 'jquery_form_error_message', // class name of div containing error messages when validation fails
468+
errorMessageClass : 'form-error', // class name of div containing error messages when validation fails
469469
validationRuleAttribute : 'data-validation', // name of the attribute holding the validation rules
470470
validationErrorMsgAttribute : 'data-validation-error-msg', // define custom err msg inline with element
471471
errorMessagePosition : 'element', // Can be either "top" or "element"

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

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

form-validator/location.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* @license Dual licensed under the MIT or GPL Version 2 licenses
14-
* @version 1.9.36
14+
* @version 1.9.37
1515
*/
1616
(function($) {
1717

form-validator/security.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/#security-validators
1515
* @license Dual licensed under the MIT or GPL Version 2 licenses
16-
* @version 1.9.36
16+
* @version 1.9.37
1717
*/
1818
(function($) {
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
* - validate_swephone
1414
*
1515
* @license Dual licensed under the MIT or GPL Version 2 licenses
16-
* @version 1.9.36
16+
* @version 1.9.37
1717
*/
1818
(function($, window) {
1919

form-validator/uk.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* - validate_ukvatnumber
1010
*
1111
* @license Dual licensed under the MIT or GPL Version 2 licenses
12-
* @version 1.9.36
12+
* @version 1.9.37
1313
*/
1414
$.formUtils.addValidator({
1515
name : 'validate_ukvatnumber',

0 commit comments

Comments
 (0)