diff --git a/src/www/js/BongoCalendar.js b/src/www/js/BongoCalendar.js index 65159d7..6742239 100644 --- a/src/www/js/BongoCalendar.js +++ b/src/www/js/BongoCalendar.js @@ -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) { diff --git a/src/www/js/CalendarEditor.js b/src/www/js/CalendarEditor.js index 724c541..3330f7e 100644 --- a/src/www/js/CalendarEditor.js +++ b/src/www/js/CalendarEditor.js @@ -772,7 +772,7 @@ Dragonfly.Calendar.CalendarSummary.prototype.buildHtml = function (html) var d = Dragonfly; html.push ('

', d.escapeHTML (this.calendar.cal.name), '

', - '

Url: ', d.escapeHTML (this.calendar.serverUrl), '.ics

'); + '

Url: ', d.escapeHTML(this.calendar.subscriptionUrl), '.ics

'); html.addCallback (bind ('connectHtml', this)); return html; };