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

git-svn-id: svn://10.0.0.236/trunk@212739 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mattwillis%gmail.com 2006-09-27 19:47:54 +00:00
parent 7f8db8993d
commit 4776a60e76

View File

@ -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();