From b4a323e4a7172f87612050e3e81e636366132566 Mon Sep 17 00:00:00 2001 From: "mikep%oeone.com" Date: Thu, 6 Feb 2003 18:38:55 +0000 Subject: [PATCH] Fixing subscribing to remote calendars, fix for bug 191442. --- calendar/resources/content/calendarManager.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/calendar/resources/content/calendarManager.js b/calendar/resources/content/calendarManager.js index cafe23c6d8f2..4a1885d5d69d 100644 --- a/calendar/resources/content/calendarManager.js +++ b/calendar/resources/content/calendarManager.js @@ -281,19 +281,20 @@ calendarManager.prototype.addServerDialogResponse = function calMan_addServerDia CalendarObject.path = profileFile.path; } - node.setAttribute("http://home.netscape.com/NC-rdf#path", CalendarObject.path) - - if( CalendarObject.path.indexOf( "http://" ) != -1 ) + node.setAttribute("http://home.netscape.com/NC-rdf#path", CalendarObject.remotePath) + + if( CalendarObject.remotePath.indexOf( "http://" ) != -1 || + CalendarObject.remotePath.indexOf( "https://" ) != -1 || + CalendarObject.remotePath.indexOf( "ftp://" ) != -1 ) { profileFile = this.getProfileDirectory(); profileFile.append( "Calendar" ); profileFile.append("RemoteCalendar"+this.rootContainer.getSubNodes().length+".ics"); node.setAttribute("http://home.netscape.com/NC-rdf#remote", "true"); - node.setAttribute("http://home.netscape.com/NC-rdf#remotePath", CalendarObject.path); + node.setAttribute("http://home.netscape.com/NC-rdf#remotePath", CalendarObject.remotePath); node.setAttribute("http://home.netscape.com/NC-rdf#path", profileFile.path); node.setAttribute("http://home.netscape.com/NC-rdf#publishAutomatically", CalendarObject.publishAutomatically); - this.retrieveAndSaveRemoteCalendar( node ); dump( "Remote Calendar Number "+this.rootContainer.getSubNodes().length+" Added" );