Browse Source

Don't check isExcluded up front

Controls that are not initially displayed on the page don't ever get validated after displaying them.  isExcluded is checked at validation time, so it is safe to just skip this check.
Mike Podruchny 11 years ago
parent
commit
6c56ead47a
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/js/bootstrapValidator.js

+ 3 - 3
src/js/bootstrapValidator.js

@@ -88,9 +88,9 @@
                 .find('[name], [data-bv-field]')
                     .each(function() {
                         var $field = $(this);
-                        if (that._isExcluded($field)) {
-                            return;
-                        }
+                        //if (that._isExcluded($field)) {
+                        //    return;
+                        //}
 
                         var field = $field.attr('name') || $field.attr('data-bv-field'),
                             opts  = that._parseOptions($field);