提交 a36685df 编写于 作者: U unknown

修复首页日程安排显示异常的问题

上级 f520d815
......@@ -109,12 +109,14 @@ MWF.xApplication.Homepage.CalendarContent = new Class({
if (json.data.wholeDayEvents && json.data.wholeDayEvents.length){
json.data.wholeDayEvents.each(function(e){
var ds = (new Date()).parse(e.startTime);
var i = start.diff(ds);
var de = (new Date()).parse(e.endTime);
while( i < de ){
if( start > ds )ds = start.clone();
if( de < start )return;
while( ds < de && ds <= end ){
var i = start.diff(ds);
this.setCalenderFlag(tds[i]);
ds.increment('day',1);
}
this.setCalenderFlag(tds[i]);
}.bind(this));
}
if (json.data.inOneDayEvents && json.data.inOneDayEvents.length){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册