浏览代码

Release v0.3.1

nghuuphuoc 11 年之前
父节点
当前提交
e00f59e190
共有 6 个文件被更改,包括 9 次插入13 次删除
  1. 1 5
      CHANGELOG.md
  2. 4 4
      README.md
  3. 1 1
      dist/css/bootstrapValidator.min.css
  4. 1 1
      dist/js/bootstrapValidator.js
  5. 1 1
      dist/js/bootstrapValidator.min.js
  6. 1 1
      package.json

+ 1 - 5
CHANGELOG.md

@@ -2,7 +2,7 @@
 
 ## v0.3.1
 
-Not released yet
+Released on 2014-03-17
 
 __New features__:
 
@@ -22,10 +22,6 @@ __Fixes__:
 * [#82, #84: The error messages aren't shown if the form field doesn't have label](https://github.com/nghuuphuoc/bootstrapvalidator/issues/82)
 * [#89: ```submitHandler``` or default submission isn't called after ```remote``` validation completes](https://github.com/nghuuphuoc/bootstrapvalidator/issues/89)
 
-__Document__:
-
-* Add ```isValid()``` method to the _API_ section
-
 ## v0.3.0
 
 Released on 2014-03-10

+ 4 - 4
README.md

@@ -355,8 +355,8 @@ country     | US      | A ISO 3166 country code. Currently it supports the follo
 $(form).bootstrapValidator(options).bootstrapValidator('validate');
 
 // or
-var validator = $(form).bootstrapValidator(options);
-validator.validate();
+$(form).bootstrapValidator(options);
+$(form).data('bootstrapValidator').validate();
 ```
 
 ### ```isValid```
@@ -455,8 +455,8 @@ enabled   | If ```true```, enable field validators. If ```false```, disable fiel
 If ```resetFormData``` is ```true```, the method resets the fields which have validator rules.
 
 ```javascript
-var validator = $(form).bootstrapValidator(options);
-validator.resetForm();
+$(form).bootstrapValidator(options);
+$(form).data('bootstrapValidator').resetForm();
 ```
 
 ## Write new validator

+ 1 - 1
dist/css/bootstrapValidator.min.css

@@ -3,7 +3,7 @@
  *
  * A jQuery plugin to validate form fields. Use with Bootstrap 3
  *
- * @version     v0.3.1-dev
+ * @version     v0.3.1
  * @author      https://twitter.com/nghuuphuoc
  * @copyright   (c) 2013 - 2014 Nguyen Huu Phuoc
  * @license     MIT

+ 1 - 1
dist/js/bootstrapValidator.js

@@ -3,7 +3,7 @@
  *
  * A jQuery plugin to validate form fields. Use with Bootstrap 3
  *
- * @version     v0.3.1-dev
+ * @version     v0.3.1
  * @author      https://twitter.com/nghuuphuoc
  * @copyright   (c) 2013 - 2014 Nguyen Huu Phuoc
  * @license     MIT

+ 1 - 1
dist/js/bootstrapValidator.min.js

@@ -3,7 +3,7 @@
  *
  * A jQuery plugin to validate form fields. Use with Bootstrap 3
  *
- * @version     v0.3.1-dev
+ * @version     v0.3.1
  * @author      https://twitter.com/nghuuphuoc
  * @copyright   (c) 2013 - 2014 Nguyen Huu Phuoc
  * @license     MIT

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
     "name": "bootstrapValidator",
-    "version": "0.3.1-dev",
+    "version": "0.3.1",
     "description": "A jQuery plugin to validate form fields. Use with Bootstrap 3",
     "keywords": ["jQuery", "plugin", "validator", "Bootstrap"],
     "author": {