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.1.0 - Released 12/16/2009
[extjs.git]
/
src
/
widgets
/
form
/
DateField.js
diff --git
a/src/widgets/form/DateField.js
b/src/widgets/form/DateField.js
index
420cab0
..
a7b3f39
100644
(file)
--- a/
src/widgets/form/DateField.js
+++ b/
src/widgets/form/DateField.js
@@
-1,5
+1,5
@@
/*!
/*!
- * Ext JS Library 3.
0
.0
+ * Ext JS Library 3.
1
.0
* Copyright(c) 2006-2009 Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
* Copyright(c) 2006-2009 Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
@@
-139,6
+139,18
@@
disabledDates: ["^03"]
this.disabledDatesRE = null;
this.initDisabledDays();
},
this.disabledDatesRE = null;
this.initDisabledDays();
},
+
+ initEvents: function() {
+ Ext.form.DateField.superclass.initEvents.call(this);
+ this.keyNav = new Ext.KeyNav(this.el, {
+ "down": function(e) {
+ this.onTriggerClick();
+ },
+ scope: this,
+ forceKeyDown: true
+ });
+ },
+
// private
initDisabledDays : function(){
// private
initDisabledDays : function(){
@@
-304,7
+316,7
@@
dateField.setValue('2006-05-04');
// private
onDestroy : function(){
// private
onDestroy : function(){
- Ext.destroy(this.menu);
+ Ext.destroy(this.menu
, this.keyNav
);
Ext.form.DateField.superclass.onDestroy.call(this);
},
Ext.form.DateField.superclass.onDestroy.call(this);
},
@@
-325,7
+337,8
@@
dateField.setValue('2006-05-04');
}
if(this.menu == null){
this.menu = new Ext.menu.DateMenu({
}
if(this.menu == null){
this.menu = new Ext.menu.DateMenu({
- hideOnClick: false
+ hideOnClick: false,
+ focusOnSelect: false
});
}
this.onFocus();
});
}
this.onFocus();