bug 337712 - Uses X-MOZ-LOCATION-PATH to construct the uri for deleting if available. r=ctalbert,dmose

This commit is contained in:
mattwillis%gmail.com 2006-09-27 19:47:51 +00:00
Родитель 613506b277
Коммит c6ac9a52c5
1 изменённых файлов: 9 добавлений и 2 удалений

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

@ -414,9 +414,16 @@ calDavCalendar.prototype = {
return;
}
// XXX how are we REALLY supposed to figure this out?
var eventUri = this.mCalendarUri.clone();
eventUri.spec = eventUri.spec + aItem.id + ".ics";
try {
eventUri.spec = this.mCalendarUri.spec +
aItem.getProperty("X-MOZ-LOCATIONPATH");
LOG("using X-MOZ-LOCATIONPATH: " + eventUri.spec);
} catch (ex) {
// XXX how are we REALLY supposed to figure this out?
eventUri.spec = eventUri.spec + aItem.id + ".ics";
}
var eventResource = new WebDavResource(eventUri);
var listener = new WebDavListener();