浏览代码

Change default submitButtons to [type="submit"] to support input type="submit"

nghuuphuoc 11 年之前
父节点
当前提交
bf64ec6573
共有 4 个文件被更改,包括 4 次插入3 次删除
  1. 1 0
      CHANGELOG.md
  2. 1 1
      dist/js/bootstrapValidator.js
  3. 1 1
      dist/js/bootstrapValidator.min.js
  4. 1 1
      src/js/bootstrapValidator.js

+ 1 - 0
CHANGELOG.md

@@ -6,6 +6,7 @@
 * [#233](https://github.com/nghuuphuoc/bootstrapvalidator/issues/233): Add ```threshold``` option
 * [#232](https://github.com/nghuuphuoc/bootstrapvalidator/issues/232): Add ```id``` validator
 * [#242](https://github.com/nghuuphuoc/bootstrapvalidator/issues/242): Add ```separator``` option to the [```numeric``` validator](http://bootstrapvalidator.com/validators/numeric/)
+* Change default ```submitButtons``` to ```[type="submit"]``` to support ```input type="submit"```
 * Fix the issue that the hidden fields generated by other plugins might not be validated
 * When parsing options from HTML attributes, don't add the field which hasn't validators. It improves fixes for [#191](https://github.com/nghuuphuoc/bootstrapvalidator/issues/191), [#223](https://github.com/nghuuphuoc/bootstrapvalidator/issues/223)
 

+ 1 - 1
dist/js/bootstrapValidator.js

@@ -105,7 +105,7 @@
 
         // The submit buttons selector
         // These buttons will be disabled to prevent the valid form from multiple submissions
-        submitButtons: 'button[type="submit"]',
+        submitButtons: '[type="submit"]',
 
         // The custom submit handler
         // It will prevent the form from the default submission

文件差异内容过多而无法显示
+ 1 - 1
dist/js/bootstrapValidator.min.js


+ 1 - 1
src/js/bootstrapValidator.js

@@ -104,7 +104,7 @@
 
         // The submit buttons selector
         // These buttons will be disabled to prevent the valid form from multiple submissions
-        submitButtons: 'button[type="submit"]',
+        submitButtons: '[type="submit"]',
 
         // The custom submit handler
         // It will prevent the form from the default submission