Skip to content

Commit

Permalink
修复选中今天期日choose方法得不到值
Browse files Browse the repository at this point in the history
  • Loading branch information
seven3s committed Sep 23, 2016
1 parent cb3e6b4 commit 1079d77
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 15 deletions.
5 changes: 4 additions & 1 deletion laydate.dev.js
Expand Up @@ -760,7 +760,10 @@ Dates.events = function(){
as.otoday = S('#laydate_today');
Dates.on(as.otoday, 'click', function(){
var now = new Date();
Dates.creation([now.getFullYear(), now.getMonth() + 1, now.getDate()]);
// 2016-09-23 18:20:54 修复选中今天choose方法得不到数据
// Dates.creation([now.getFullYear(), now.getMonth() + 1, now.getDate()]);
Dates.elem[as.elemv] = laydate.now(0,Dates.options.format);
Dates.creation([Dates.ymd[0], Dates.ymd[1]+1, Dates.ymd[2]]);
});

//确认
Expand Down

0 comments on commit 1079d77

Please sign in to comment.