From 1b2f0bc88cde65830f91dfc98699e52f18fbd051 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 22 Oct 2012 17:40:25 +0800 Subject: [PATCH] Roo/form/MonthField.js --- Roo/form/MonthField.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Roo/form/MonthField.js b/Roo/form/MonthField.js index 8b0c4cb90f..d7c766b7a7 100644 --- a/Roo/form/MonthField.js +++ b/Roo/form/MonthField.js @@ -321,18 +321,19 @@ monthField.setValue('2006-5-4'); disabledDatesRE : this.ddMatch, disabledDatesText : this.disabledDatesText, - format : this.format, + format : this.useIso ? 'Y-m-d' : this.format, minText : String.format(this.minText, this.formatDate(this.minValue)), maxText : String.format(this.maxText, this.formatDate(this.maxValue)) }); - + this.menu.on( this.menuListeners, { + scope:this + }); var m = this.menu; var p = m.picker; - p.format = this.useIso ? 'Y-m-d' : this.format; // make sure they are the same..? - Roo.log('picker set value'); + Roo.log('picker set value'); Roo.log(this.getValue()); p.setValue(this.getValue() || new Date()); m.show(this.el, 'tl-bl?'); @@ -353,9 +354,7 @@ monthField.setValue('2006-5-4'); } } } - this.menu.on( this.menuListeners, { - scope:this - }); + p.showMonthPicker.defer(100, p); -- 2.39.2