Correct link given for subscription to a shared calendar. This currently is a little inflexible with hosts not at /, but this should be fixed soon.

This commit is contained in:
jonnylamb
2007-06-29 00:58:58 +00:00
parent 9787a1dbcf
commit db4d294eac
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -92,6 +92,8 @@ Dragonfly.Calendar.BongoCalendar.prototype.parseJSON = function (jsob)
this.type = 'personal';
}
this.subscriptionUrl = "/user/ " + d.userName + "/calendar/" + d.escapeHTML(this.cal.name) + "/events";
/*
// this should probably trust the server...
switch (this.type) {
+1 -1
View File
@@ -772,7 +772,7 @@ Dragonfly.Calendar.CalendarSummary.prototype.buildHtml = function (html)
var d = Dragonfly;
html.push ('<h3>', d.escapeHTML (this.calendar.cal.name), '</h3>',
'<p>Url: ', d.escapeHTML (this.calendar.serverUrl), '.ics</p>');
'<p>Url: <a href="', d.escapeHTML (this.calendar.subscriptionUrl), '.ics">', d.escapeHTML(this.calendar.subscriptionUrl), '.ics</a></p>');
html.addCallback (bind ('connectHtml', this));
return html;
};