ソースを参照

Fixed double submit with defered validations (fixes #481)

Ludovic Perrine 11 年 前
コミット
08a95e8505
1 ファイル変更2 行追加0 行削除
  1. 2 0
      src/js/bootstrapValidator.js

+ 2 - 0
src/js/bootstrapValidator.js

@@ -814,11 +814,13 @@ if (typeof jQuery === 'undefined') {
             }
             this.disableSubmitButtons(true);
 
+            this._submitIfValid = false;
             for (var field in this.options.fields) {
                 this.validateField(field);
             }
 
             this._submit();
+            this._submitIfValid = true;
 
             return this;
         },