浏览代码

Update the version to 0.3.0-dev

nghuuphuoc 11 年之前
父节点
当前提交
f9faeb111f
共有 5 个文件被更改,包括 9 次插入12 次删除
  1. 1 1
      demo/remote.php
  2. 1 1
      dist/css/bootstrapValidator.min.css
  3. 4 7
      dist/js/bootstrapValidator.js
  4. 2 2
      dist/js/bootstrapValidator.min.js
  5. 1 1
      package.json

+ 1 - 1
demo/remote.php

@@ -4,7 +4,7 @@
 // and open the remote.html file:
 // http://domain.com/demo/remote.html
 
-sleep(5);
+//sleep(5);
 
 $valid = true;
 

+ 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.0
+ * @version     v0.3.0-dev
  * @author      https://twitter.com/nghuuphuoc
  * @copyright   (c) 2013 - 2014 Nguyen Huu Phuoc
  * @license     MIT

+ 4 - 7
dist/js/bootstrapValidator.js

@@ -3,7 +3,7 @@
  *
  * A jQuery plugin to validate form fields. Use with Bootstrap 3
  *
- * @version     v0.3.0
+ * @version     v0.3.0-dev
  * @author      https://twitter.com/nghuuphuoc
  * @copyright   (c) 2013 - 2014 Nguyen Huu Phuoc
  * @license     MIT
@@ -356,7 +356,8 @@
          * Can be STATUS_VALIDATING, STATUS_INVALID, STATUS_VALID
          */
         updateStatus: function($field, validatorName, status) {
-            var field     = $field.attr('name'),
+            var that      = this,
+                field     = $field.attr('name'),
                 validator = this.options.fields[field].validators[validatorName],
                 message   = validator.message || this.options.message,
                 $parent   = $field.parents('.form-group'),
@@ -384,10 +385,7 @@
                     // Add has-error class to parent element
                     $parent.removeClass('has-success').addClass('has-error');
 
-                    $errors
-                        .filter('[data-bs-validator="' + validatorName + '"]')
-                            .html(message)
-                            .show();
+                    $errors.filter('[data-bs-validator="' + validatorName + '"]').html(message).show();
 
                     if (this.options.feedbackIcons) {
                         // Show "error" icon
@@ -402,7 +400,6 @@
                     $errors.filter('[data-bs-validator="' + validatorName + '"]').hide();
 
                     // If the field is valid
-                    var that = this;
                     if ($errors.filter(function() {
                             var display = $(this).css('display'), v = $(this).attr('data-bs-validator');
                             return ('block' == display) || (that.results[field][v] != that.STATUS_VALID);

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


+ 1 - 1
package.json

@@ -13,5 +13,5 @@
     "grunt-contrib-uglify": "~0.4.0",
     "grunt-contrib-watch": "~0.5.3"
   },
-  "version": "0.3.0"
+  "version": "0.3.0-dev"
 }