Roo/form/MonthField.js
authorAlan Knowles <alan@roojs.com>
Mon, 22 Oct 2012 09:35:34 +0000 (17:35 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 22 Oct 2012 09:35:34 +0000 (17:35 +0800)
Roo/form/MonthField.js

index 2d64675..e110736 100644 (file)
@@ -310,9 +310,7 @@ monthField.setValue('2006-5-4');
         }
         if(this.menu == null){
             this.menu = new Roo.menu.DateMenu();
-            this.menu.on(Roo.apply({}, this.menuListeners, {
-                scope:this
-            }));
+           
         }
         
         Roo.apply(this.menu.picker,  {
@@ -355,7 +353,9 @@ monthField.setValue('2006-5-4');
                 }
             }
         }
-        
+        this.menu.on(Roo.apply({}, this.menuListeners, {
+                scope:this
+            }));
         
         p.showMonthPicker.defer(100, p);