projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71be0e6
)
Roo/DatePicker.js
author
Alan Knowles
<alan@roojs.com>
Mon, 22 Oct 2012 09:49:46 +0000
(17:49 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 22 Oct 2012 09:49:46 +0000
(17:49 +0800)
Roo/DatePicker.js
patch
|
blob
|
history
diff --git
a/Roo/DatePicker.js
b/Roo/DatePicker.js
index
71abd86
..
f4a274e
100644
(file)
--- a/
Roo/DatePicker.js
+++ b/
Roo/DatePicker.js
@@
-170,6
+170,10
@@
Roo.extend(Roo.DatePicker, Roo.Component, {
*/
setValue : function(value){
var old = this.value;
+ if (typeof(value) == 'undefined') {
+ value = new Date();
+ }
+
if (typeof(value) == 'string') {
value = Date.parseDate(value, this.format);