|
|
@@ -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) {
|