зеркало из https://github.com/mozilla/gecko-dev.git
bug 355304. Include exceptions when exporting to ics. r=dmose. npotb
This commit is contained in:
Родитель
c45a63e65f
Коммит
5e37a36764
|
@ -242,6 +242,16 @@ function ics_exportToStream(aStream, aCount, aItems) {
|
|||
|
||||
for each (item in aItems) {
|
||||
calComp.addSubcomponent(item.icalComponent);
|
||||
var rec = item.recurrenceInfo;
|
||||
if (rec != null) {
|
||||
var exceptions = rec.getExceptionIds({});
|
||||
for each ( var exid in exceptions ) {
|
||||
var ex = rec.getExceptionFor(exid, false);
|
||||
if (ex != null) {
|
||||
calComp.addSubcomponent(ex.icalComponent);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
var str = calComp.serializeToICS();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче