修复点击[今天]不会触发choose回调函数的问题

pull/6/head
Tobyee 2014-10-11 20:10:56 +08:00
parent 56ef9483d9
commit fa0dda937d
1 changed files with 3 additions and 3 deletions

View File

@ -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);