Make it possible to move or delete non-recurring events in the memory (and therefore ICS) providers (bug 303988); r=vlad. Not part of the build.

This commit is contained in:
dmose%mozilla.org 2005-08-10 23:05:35 +00:00
Родитель 081674901c
Коммит e1329abf63
1 изменённых файлов: 1 добавлений и 15 удалений

Просмотреть файл

@ -59,15 +59,6 @@ function calMemoryCalendar() {
this.initMemoryCalendar();
}
function makeOccurrence(item, start, end)
{
var occ = item.createProxy();
occ.recurrenceId = start;
occ.startDate = start;
occ.endDate = end;
return occ;
}
// END_OF_TIME needs to be the max value a PRTime can be
const START_OF_TIME = -0x7fffffffffffffff;
const END_OF_TIME = 0x7fffffffffffffff;
@ -424,12 +415,7 @@ calMemoryCalendar.prototype = {
var recs = item.recurrenceInfo.getOccurrences (aRangeStart, aRangeEnd, 0, {});
itemsFound = itemsFound.concat(recs);
} else if (itemEndTime >= startTime) {
// no occurrences
if (itemReturnOccurrences)
itemtoadd = makeOccurrence(item, item.startDate, item.endDate);
else
itemtoadd = item;
itemsFound.push(itemtoadd);
itemsFound.push(item);
}
}