mirror of https://github.com/layui/laydate
修复点击[今天]不会触发choose回调函数的问题
parent
56ef9483d9
commit
fa0dda937d
|
@ -747,8 +747,8 @@ Dates.events = function(){
|
|||
//今天
|
||||
as.otoday = S('#laydate_today');
|
||||
Dates.on(as.otoday, 'click', function(){
|
||||
Dates.elem[as.elemv] = laydate.now(0, Dates.options.format);
|
||||
Dates.close();
|
||||
var now = new Date();
|
||||
Dates.creation([now.getFullYear(), now.getMonth() + 1, now.getDate()]);
|
||||
});
|
||||
|
||||
//确认
|
||||
|
@ -859,4 +859,4 @@ laydate.skin = function(lib){
|
|||
Dates.skinLink.href = Dates.getPath + as[4] + lib + as[5];
|
||||
};
|
||||
|
||||
}(window);
|
||||
}(window);
|
||||
|
|
Loading…
Reference in New Issue