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); // 新增的语句
335


&spm=1001.2101.3001.11974&articleId=83368489&d=1&t=3&u=56b2a7607fb74008ac105f8b772593a7)

被折叠的 条评论
为什么被折叠?



