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:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user