projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
384c0cf
)
ux/DateDisplay.js
author
Alan Knowles
<alan@roojs.com>
Sun, 26 Aug 2012 13:19:18 +0000
(21:19 +0800)
committer
Alan Knowles
<alan@roojs.com>
Sun, 26 Aug 2012 13:19:18 +0000
(21:19 +0800)
ux/DateDisplay.js
patch
|
blob
|
history
diff --git
a/ux/DateDisplay.js
b/ux/DateDisplay.js
index
bf9c3cb
..
a4d20de
100644
(file)
--- a/
ux/DateDisplay.js
+++ b/
ux/DateDisplay.js
@@
-51,8
+51,12
@@
Roo.extend(Roo.form.DateDisplay , Roo.form.TextField , {
},
onSelect : function(sel) {
- this.fireEvent('select', this);
- this.setValue(this.datepicker)
+
+ if (this.datepicker.value) {
+ this.setValue(this.datepicker.value.format('Y-m-d'));
+ this.fireEvent('select', this);
+ }
+
}