ソースを参照

Update Changelog

nghuuphuoc 12 年 前
コミット
87b4f15bcd
3 ファイル変更4 行追加2 行削除
  1. 2 0
      CHANGELOG.md
  2. 1 1
      dist/js/bootstrapValidator.js
  3. 1 1
      src/js/bootstrapValidator.js

+ 2 - 0
CHANGELOG.md

@@ -2,6 +2,8 @@
 
 ## v0.4.1 (not released yet)
 
+* [#144](https://github.com/nghuuphuoc/bootstrapvalidator/issues/144), [#158](https://github.com/nghuuphuoc/bootstrapvalidator/issues/158): Fixed an issue that the custom submit handler is not fired from the second time
+* [#106](https://github.com/nghuuphuoc/bootstrapvalidator/issues/106): Prevent the ```validate()``` method from submit the form automatically. So we can call ```validate()``` to validate the form
 * [#131](https://github.com/nghuuphuoc/bootstrapvalidator/issues/131): Doesn't trigger validation on the first focus
 * [#145](https://github.com/nghuuphuoc/bootstrapvalidator/issues/145): The row state is now only marked as success if all fields on it are valid
 * [#162](https://github.com/nghuuphuoc/bootstrapvalidator/pull/162): Fix errors in IE 8, thanks to [@adgrafik](https://github.com/adgrafik)

+ 1 - 1
dist/js/bootstrapValidator.js

@@ -313,7 +313,7 @@
 
             // Call the custom submission if enabled
             if (this.options.submitHandler && 'function' == typeof this.options.submitHandler) {
-                // If you want to submit the form inside your submit Handler, please call defaultSubmit() method
+                // If you want to submit the form inside your submit handler, please call defaultSubmit() method
                 this.options.submitHandler.call(this, this, this.$form, this.$submitButton);
             } else {
                 this.disableSubmitButtons(true).defaultSubmit();

+ 1 - 1
src/js/bootstrapValidator.js

@@ -312,7 +312,7 @@
 
             // Call the custom submission if enabled
             if (this.options.submitHandler && 'function' == typeof this.options.submitHandler) {
-                // If you want to submit the form inside your submit Handler, please call defaultSubmit() method
+                // If you want to submit the form inside your submit handler, please call defaultSubmit() method
                 this.options.submitHandler.call(this, this, this.$form, this.$submitButton);
             } else {
                 this.disableSubmitButtons(true).defaultSubmit();