Roo/form/MonthField.js
authorChris <chris@roojs.com>
Thu, 18 Oct 2012 09:38:01 +0000 (17:38 +0800)
committerChris <chris@roojs.com>
Thu, 18 Oct 2012 09:38:01 +0000 (17:38 +0800)
Roo/form/MonthField.js

index 31e50e6..998cc0c 100644 (file)
@@ -338,6 +338,10 @@ dateField.setValue('2006-5-4');
                     this.monthPicker.slideOut('t', {duration:.2});
                 }
             }
+            this.mpSelMonth = (this.activeDate || this.value).getMonth();
+        this.updateMPMonth(this.mpSelMonth);
+        this.mpSelYear = (this.activeDate || this.value).getFullYear();
+        this.updateMPYear(this.mpSelYear);
             Roo.log(m.picker.mpSelMonth);
             Roo.log(m.picker.mpSelYear);
             m.hide();