EXT日期控件BUG。BUG出现日期:2009-03-31。
BUG描述:月份选择不对,无法任意选择月;我选择09年2月,系统自动变成3月了。
ext-all.js中修改了两个控件的实现。
(1)在Ext.form.DateField控件中,注释掉语句
beforeBlur:function(){ var A=this.parseDate(this.getRawValue()); if(A){ //this.setValue(A) } }
(2)在Ext.DatePicker控件中,注释两条语句,新增了一条语句
onMonthDblClick : function(e, t){ e.stopEvent(); var el = new Ext.Element(t), pn; if(pn = el.up('td.x-date-mp-month', 2)){ this.update(new Date(this.mpSelYear, pn.dom.xmonth, (this.activeDate || this.value).getDate())); // this.hideMonthPicker(); } else if(pn = el.up('td.x-date-mp-year', 2)){ this.update(new Date(pn.dom.xyear, this.mpSelMonth, (this.activeDate || this.value).getDate())); // this.hideMonthPicker(); } },
onMonthClick : function(e, t){ this.onMonthDblClick(e,t); // 新增的语句