浏览代码

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 年之前
父节点
当前提交
6c56ead47a
共有 1 个文件被更改,包括 3 次插入3 次删除
  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);