ソースを参照

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);