ux/DateDisplay.js
authorAlan Knowles <alan@roojs.com>
Sun, 26 Aug 2012 13:19:43 +0000 (21:19 +0800)
committerAlan Knowles <alan@roojs.com>
Sun, 26 Aug 2012 13:19:43 +0000 (21:19 +0800)
ux/DateDisplay.js

index 8ebdd3a..21d7387 100644 (file)
@@ -52,8 +52,8 @@ Roo.extend(Roo.form.DateDisplay , Roo.form.TextField ,  {
     },
     onSelect : function(sel) {
         
-        if (this.datepicker.value) {
-            this.setValue(this.datepicker.value.format('Y-m-d'));
+        if (this.picker.value) {
+            this.setValue(this.picker.value.format('Y-m-d'));
             this.fireEvent('select', this);
         }