jQuery("span.today", datepicker).click(function () {
// Modify by WangJian 2012-03-15 begin
//修复在时间面板上的'Today/今天'按钮置disabled 后,在除了IE Broswer之外,其它的Broswer的点击事件没有失效。
//Bug 的原因是IE和其它Broswer对$(this).attr("disabled")的兼容性问题。
/* if(!$(this).attr("disabled"))
{
closeIt($this, datepicker, new Date(),opts);
}*/
var isDisabled = $(this).get(0).getAttribute("disabled");
if(!isDisabled)
{
closeIt($this, datepicker, new Date(),opts);
}
// Modify by WangJian 2012-03-15 end
});
sdasdf
最新推荐文章于 2021-05-20 10:30:24 发布