|
|
@@ -2,7 +2,7 @@
|
|
|
* BootstrapValidator (http://bootstrapvalidator.com)
|
|
|
* The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
|
|
|
*
|
|
|
- * @version v0.5.2-dev, built on 2014-09-10 12:12:27 PM
|
|
|
+ * @version v0.5.2-dev, built on 2014-09-10 7:47:26 PM
|
|
|
* @author https://twitter.com/nghuuphuoc
|
|
|
* @copyright (c) 2013 - 2014 Nguyen Huu Phuoc
|
|
|
* @license MIT
|
|
|
@@ -5924,17 +5924,17 @@ if (typeof jQuery === 'undefined') {
|
|
|
},
|
|
|
|
|
|
enableByHtml5: function($field) {
|
|
|
- var html5Validators = {};
|
|
|
- var maxLength = $field.attr('maxlength');
|
|
|
+ var options = {},
|
|
|
+ maxLength = $field.attr('maxlength'),
|
|
|
+ minLength = $field.attr('minlength');
|
|
|
if (maxLength) {
|
|
|
- html5Validators.max = parseInt(maxLength, 10);
|
|
|
+ options.max = parseInt(maxLength, 10);
|
|
|
}
|
|
|
-
|
|
|
- var minLength = $field.attr('minlength');
|
|
|
if (minLength) {
|
|
|
- html5Validators.min = parseInt(minLength, 10);
|
|
|
+ options.min = parseInt(minLength, 10);
|
|
|
}
|
|
|
- return !$.isEmptyObject(html5Validators) && html5Validators;
|
|
|
+
|
|
|
+ return $.isEmptyObject(options) ? false : options;
|
|
|
},
|
|
|
|
|
|
/**
|