git.ithinksw.org
/
extjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to ExtJS 3.3.1 - Released 11/30/2010
[extjs.git]
/
examples
/
form
/
adv-vtypes.js
diff --git
a/examples/form/adv-vtypes.js
b/examples/form/adv-vtypes.js
index
1084c56
..
02f22c0
100644
(file)
--- a/
examples/form/adv-vtypes.js
+++ b/
examples/form/adv-vtypes.js
@@
-1,8
+1,8
@@
/*!
/*!
- * 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, {
*/
// Add the additional 'advanced' VTypes
Ext.apply(Ext.form.VTypes, {
@@
-12,17
+12,19
@@
Ext.apply(Ext.form.VTypes, {
if(!date){
return false;
}
if(!date){
return false;
}
- if (field.startDateField
&& (!this.dateRangeMax || (date.getTime() != this.dateRangeMax.getTime()))
) {
+ if (field.startDateField) {
var start = Ext.getCmp(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);
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
}
/*
* Always return true since we're only using this vtype to set the
@@
-109,4
+111,4
@@
Ext.onReady(function(){
});
pwd.render('pw');
});
pwd.render('pw');
-});
\ No newline at end of file
+});