projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Roo/DatePicker.js
[roojs1]
/
Roo
/
DatePicker.js
diff --git
a/Roo/DatePicker.js
b/Roo/DatePicker.js
index
e272f6a
..
95e764b
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) == 'string') {
+ value = Date.parseDate(value, 'Y-m-d');
+ }
+
this.value = value.clearTime(true);
if(this.el){
this.update(this.value);