зеркало из https://github.com/mozilla/pjs.git
Bug 327856 Views don't display events that start and end at 00:00 on the same day, r=dmose
This commit is contained in:
Родитель
5352b8fd86
Коммит
938f6991e0
|
@ -1130,6 +1130,11 @@
|
|||
targetDate.second = 0;
|
||||
}
|
||||
|
||||
if (targetDate.compare(finishDate) == 0) {
|
||||
// Zero length events are silly, but we have to handle them
|
||||
return [this.findBoxForDate(targetDate)];
|
||||
}
|
||||
|
||||
while (targetDate.compare(finishDate) == -1) {
|
||||
var box = this.findBoxForDate(targetDate);
|
||||
|
||||
|
|
|
@ -2407,6 +2407,11 @@
|
|||
targetDate.second = 0;
|
||||
}
|
||||
|
||||
if (targetDate.compare(finishDate) == 0) {
|
||||
// Zero length events are silly, but we have to handle them
|
||||
return [this.findColumnForDate(targetDate)];
|
||||
}
|
||||
|
||||
while (targetDate.compare(finishDate) == -1) {
|
||||
var col = this.findColumnForDate(targetDate);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче