ソースを参照

Update the header

nghuuphuoc 11 年 前
コミット
5e0de4b262

+ 1 - 1
Gruntfile.js

@@ -8,7 +8,7 @@ module.exports = function(grunt) {
             '/**',
             ' * BootstrapValidator (<%= pkg.homepage %>)',
             ' *',
-            ' * A jQuery plugin to validate form fields. Use with Bootstrap 3',
+            ' * <%= pkg.description %>',
             ' *',
             ' * @version     v<%= pkg.version %>',
             ' * @author      <%= pkg.author.url %>',

+ 3 - 3
dist/css/bootstrapValidator.css

@@ -1,10 +1,10 @@
 /**
- * BootstrapValidator (https://github.com/nghuuphuoc/bootstrapvalidator)
+ * BootstrapValidator (http://bootstrapvalidator.com)
  *
- * A jQuery plugin to validate form fields. Use with Bootstrap 3
+ * The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
  *
  * @author      http://twitter.com/nghuuphuoc
- * @copyright   (c) 2014 Nguyen Huu Phuoc
+ * @copyright   (c) 2013 - 2014 Nguyen Huu Phuoc
  * @license     MIT
  */
 

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

@@ -1,7 +1,7 @@
 /**
  * BootstrapValidator (http://bootstrapvalidator.com)
  *
- * A jQuery plugin to validate form fields. Use with Bootstrap 3
+ * The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
  *
  * @version     v0.4.5-dev
  * @author      https://twitter.com/nghuuphuoc

+ 8 - 8
dist/js/bootstrapValidator.js

@@ -1,7 +1,7 @@
 /**
  * BootstrapValidator (http://bootstrapvalidator.com)
  *
- * A jQuery plugin to validate form fields. Use with Bootstrap 3
+ * The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
  *
  * @version     v0.4.5-dev
  * @author      https://twitter.com/nghuuphuoc
@@ -400,7 +400,7 @@
          * Returning true means that the field will not be validated
          *
          * @param {jQuery} $field The field element
-         * @return {Boolean}
+         * @returns {Boolean}
          */
         _isExcluded: function($field) {
             if (this.options.excluded) {
@@ -510,7 +510,7 @@
         /**
          * Validate the form
          *
-         * @return {BootstrapValidator}
+         * @returns {BootstrapValidator}
          */
         validate: function() {
             if (!this.options.fields) {
@@ -611,7 +611,7 @@
          * @param {String} field The field name
          * @param {String} status The status. Can be 'NOT_VALIDATED', 'VALIDATING', 'INVALID' or 'VALID'
          * @param {String} [validatorName] The validator name. If null, the method updates validity result for all validators
-         * @return {BootstrapValidator}
+         * @returns {BootstrapValidator}
          */
         updateStatus: function(field, status, validatorName) {
             var fields = this.getFieldElements(field),
@@ -631,7 +631,7 @@
          * @param {jQuery} $field The field element
          * @param {String} status The status. Can be 'NOT_VALIDATED', 'VALIDATING', 'INVALID' or 'VALID'
          * @param {String} [validatorName] The validator name. If null, the method updates validity result for all validators
-         * @return {BootstrapValidator}
+         * @returns {BootstrapValidator}
          */
         updateElementStatus: function($field, status, validatorName) {
             var that     = this,
@@ -791,7 +791,7 @@
          * Reset the form
          *
          * @param {Boolean} resetFormData Reset current form data
-         * @return {BootstrapValidator}
+         * @returns {BootstrapValidator}
          */
         resetForm: function(resetFormData) {
             var field, fields, total, type, validator;
@@ -828,7 +828,7 @@
          *
          * @param {String} field The field name
          * @param {Boolean} enabled Enable/Disable field validators
-         * @return {BootstrapValidator}
+         * @returns {BootstrapValidator}
          */
         enableFieldValidators: function(field, enabled) {
             this.options.fields[field]['enabled'] = enabled;
@@ -869,7 +869,7 @@
          * @param {Number} year The full year in 4 digits
          * @param {Number} month The month number
          * @param {Number} day The day number
-         * @param {Boolean} notInFuture If true, the date must not be in the future
+         * @param {Boolean} [notInFuture] If true, the date must not be in the future
          * @returns {Boolean}
          */
         date: function(year, month, day, notInFuture) {

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

@@ -1,7 +1,7 @@
 /**
  * BootstrapValidator (http://bootstrapvalidator.com)
  *
- * A jQuery plugin to validate form fields. Use with Bootstrap 3
+ * The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
  *
  * @version     v0.4.5-dev
  * @author      https://twitter.com/nghuuphuoc

+ 3 - 3
src/css/bootstrapValidator.css

@@ -1,10 +1,10 @@
 /**
- * BootstrapValidator (https://github.com/nghuuphuoc/bootstrapvalidator)
+ * BootstrapValidator (http://bootstrapvalidator.com)
  *
- * A jQuery plugin to validate form fields. Use with Bootstrap 3
+ * The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
  *
  * @author      http://twitter.com/nghuuphuoc
- * @copyright   (c) 2014 Nguyen Huu Phuoc
+ * @copyright   (c) 2013 - 2014 Nguyen Huu Phuoc
  * @license     MIT
  */
 

+ 9 - 9
src/js/bootstrapValidator.js

@@ -1,7 +1,7 @@
 /**
- * BootstrapValidator (https://github.com/nghuuphuoc/bootstrapvalidator)
+ * BootstrapValidator (http://bootstrapvalidator.com)
  *
- * A jQuery plugin to validate form fields. Use with Bootstrap 3
+ * The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
  *
  * @author      http://twitter.com/nghuuphuoc
  * @copyright   (c) 2013 - 2014 Nguyen Huu Phuoc
@@ -399,7 +399,7 @@
          * Returning true means that the field will not be validated
          *
          * @param {jQuery} $field The field element
-         * @return {Boolean}
+         * @returns {Boolean}
          */
         _isExcluded: function($field) {
             if (this.options.excluded) {
@@ -509,7 +509,7 @@
         /**
          * Validate the form
          *
-         * @return {BootstrapValidator}
+         * @returns {BootstrapValidator}
          */
         validate: function() {
             if (!this.options.fields) {
@@ -610,7 +610,7 @@
          * @param {String} field The field name
          * @param {String} status The status. Can be 'NOT_VALIDATED', 'VALIDATING', 'INVALID' or 'VALID'
          * @param {String} [validatorName] The validator name. If null, the method updates validity result for all validators
-         * @return {BootstrapValidator}
+         * @returns {BootstrapValidator}
          */
         updateStatus: function(field, status, validatorName) {
             var fields = this.getFieldElements(field),
@@ -630,7 +630,7 @@
          * @param {jQuery} $field The field element
          * @param {String} status The status. Can be 'NOT_VALIDATED', 'VALIDATING', 'INVALID' or 'VALID'
          * @param {String} [validatorName] The validator name. If null, the method updates validity result for all validators
-         * @return {BootstrapValidator}
+         * @returns {BootstrapValidator}
          */
         updateElementStatus: function($field, status, validatorName) {
             var that     = this,
@@ -790,7 +790,7 @@
          * Reset the form
          *
          * @param {Boolean} resetFormData Reset current form data
-         * @return {BootstrapValidator}
+         * @returns {BootstrapValidator}
          */
         resetForm: function(resetFormData) {
             var field, fields, total, type, validator;
@@ -827,7 +827,7 @@
          *
          * @param {String} field The field name
          * @param {Boolean} enabled Enable/Disable field validators
-         * @return {BootstrapValidator}
+         * @returns {BootstrapValidator}
          */
         enableFieldValidators: function(field, enabled) {
             this.options.fields[field]['enabled'] = enabled;
@@ -868,7 +868,7 @@
          * @param {Number} year The full year in 4 digits
          * @param {Number} month The month number
          * @param {Number} day The day number
-         * @param {Boolean} notInFuture If true, the date must not be in the future
+         * @param {Boolean} [notInFuture] If true, the date must not be in the future
          * @returns {Boolean}
          */
         date: function(year, month, day, notInFuture) {