From: Alan Knowles Date: Mon, 22 Oct 2012 09:41:34 +0000 (+0800) Subject: roojs-ui.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=5c448a527ec49b40e9cbfd2c1ae57ecc14d06bba;p=roojs1 roojs-ui.js roojs-ui-debug.js --- diff --git a/roojs-ui-debug.js b/roojs-ui-debug.js index fed9458893..6577968554 100644 --- a/roojs-ui-debug.js +++ b/roojs-ui-debug.js @@ -23218,28 +23218,23 @@ 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(this.getValue()); - p.setValue(this.getValue() || new Date()); - m.show(this.el, 'tl-bl?'); - - // hidden the day picker - Roo.select('.x-date-picker table', true).first().dom.style.visibility = "hidden"; p.hideMonthPicker = function(disableAnim){ if(this.monthPicker){ + Roo.log("hideMonthPicker called"); if(disableAnim === true){ this.monthPicker.hide(); }else{ @@ -23250,9 +23245,18 @@ monthField.setValue('2006-5-4'); } } } - this.menu.on( this.menuListeners, { - scope:this - }); + + Roo.log('picker set value'); + Roo.log(this.getValue()); + p.setValue(this.getValue() || new Date()); + m.show(this.el, 'tl-bl?'); + + // hidden the day picker + Roo.select('.x-date-picker table', true).first().dom.style.visibility = "hidden"; + + + + p.showMonthPicker.defer(100, p); @@ -31546,8682 +31550,4 @@ Roo.BorderLayout.RegionFactory = { } throw 'Layout region "'+target+'" not supported.'; } -};/* - * Based on: - * Ext JS Library 1.1.1 - * Copyright(c) 2006-2007, Ext JS, LLC. - * - * Originally Released Under LGPL - original licence link has changed is not relivant. - * - * Fork - LGPL - *