X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsymbols%2Fsrc%2FRoo_bootstrap_DateField.js.html;h=ead092dbeffab0d1dfe34949598e0c4c6b643d3b;hb=cfb2c9fb219dd0c7d450013a357228469dee2f32;hp=0064c3fa1f0f8bdd88a53c2912e495000d6ae65b;hpb=a85cad88263ee67afa9935772ee02052d220d68f;p=roojs1 diff --git a/docs/symbols/src/Roo_bootstrap_DateField.js.html b/docs/symbols/src/Roo_bootstrap_DateField.js.html index 0064c3fa1f..ead092dbef 100644 --- a/docs/symbols/src/Roo_bootstrap_DateField.js.html +++ b/docs/symbols/src/Roo_bootstrap_DateField.js.html @@ -147,7 +147,7 @@ this.isInput = true; this.component = this.el.select('.add-on', true).first() || false; this.component = (this.component && this.component.length === 0) ? false : this.component; - this.hasInput = this.component && this.inputEL().length; + this.hasInput = this.component && this.inputEl().length; if (typeof(this.minViewMode === 'string')) { switch (this.minViewMode) { @@ -926,6 +926,54 @@ remove: function() { this.picker().remove(); + }, + + validateValue : function(value) + { + if(value.length < 1) { + if(this.allowBlank){ + return true; + } + return false; + } + + if(value.length < this.minLength){ + return false; + } + if(value.length > this.maxLength){ + return false; + } + if(this.vtype){ + var vt = Roo.form.VTypes; + if(!vt[this.vtype](value, this)){ + return false; + } + } + if(typeof this.validator == "function"){ + var msg = this.validator(value); + if(msg !== true){ + return false; + } + } + + if(this.regex && !this.regex.test(value)){ + return false; + } + + if(typeof(this.parseDate(value)) == 'undefined'){ + return false; + } + + if (this.endDate !== Infinity && this.parseDate(value).getTime() > this.endDate.getTime()) { + return false; + } + + if (this.startDate !== -Infinity && this.parseDate(value).getTime() < this.startDate.getTime()) { + return false; + } + + + return true; } });