提交 acb00e89 编写于 作者: C Catouse

* fixed an error of calendar.

上级 d7fd3a9b
......@@ -857,17 +857,6 @@ var events = calendar.events; // 获取所有事件对象实例
</ul>
</td>
</tr>
<tr>
<td><code>clickCell</code></td>
<td><code>"clickCell.zui.calendar"</code></td>
<td>当点击一个日期单元格时发生</td>
<td>
<ul>
<li><code>event.view</code> 字符串,当前视图名称</li>
<li><code>event.date</code> 日期事件对象实例,当前单元格的日期</li>
</ul>
</td>
</tr>
</tbody>
</table>
......
......@@ -454,8 +454,8 @@
.text(((month === 0 && day === 1) ? (lang.year.format(year) + ' ') : '') + lang.monthNames[month]);
$cell.toggleClass('current-month', month === thisMonth);
$cell.toggleClass('current', (day === todayDate && month === todayMonth && year === todayYear));
$cell.toggleClass('past', printDate < date);
$cell.toggleClass('future', printDate > date);
$cell.toggleClass('past', printDate < today);
$cell.toggleClass('future', printDate > today);
$day.find('.events').empty();
printDate.addDays(1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册