/*!
- * Ext JS Library 3.3.0
- * Copyright(c) 2006-2010 Ext JS, Inc.
- * licensing@extjs.com
- * http://www.extjs.com/license
+ * Ext JS Library 3.3.1
+ * Copyright(c) 2006-2010 Sencha Inc.
+ * licensing@sencha.com
+ * http://www.sencha.com/license
*/
// Add the additional 'advanced' VTypes
Ext.apply(Ext.form.VTypes, {
if(!date){
return false;
}
- if (field.startDateField && (!this.dateRangeMax || (date.getTime() != this.dateRangeMax.getTime()))) {
+ if (field.startDateField) {
var start = Ext.getCmp(field.startDateField);
- start.setMaxValue(date);
- start.validate();
- this.dateRangeMax = date;
+ if (!start.maxValue || (date.getTime() != start.maxValue.getTime())) {
+ start.setMaxValue(date);
+ start.validate();
+ }
}
- else if (field.endDateField && (!this.dateRangeMin || (date.getTime() != this.dateRangeMin.getTime()))) {
+ else if (field.endDateField) {
var end = Ext.getCmp(field.endDateField);
- end.setMinValue(date);
- end.validate();
- this.dateRangeMin = date;
+ if (!end.minValue || (date.getTime() != end.minValue.getTime())) {
+ end.setMinValue(date);
+ end.validate();
+ }
}
/*
* Always return true since we're only using this vtype to set the
});
pwd.render('pw');
-});
\ No newline at end of file
+});