From 8e3214e2abdbf84932493b8cc2239f75f4053bf3 Mon Sep 17 00:00:00 2001 From: "jminta%gmail.com" Date: Tue, 17 Jan 2006 00:12:18 +0000 Subject: [PATCH] Bug 323180 Publish Remote Calendar should remember the last location used. patch by ssitter@googlemail.com, r=jminta --- calendar/resources/content/publish.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/calendar/resources/content/publish.js b/calendar/resources/content/publish.js index 3f5a7690e12..dd3934bcb97 100644 --- a/calendar/resources/content/publish.js +++ b/calendar/resources/content/publish.js @@ -62,9 +62,9 @@ function publishEntireCalendar() var cal = getDefaultCalendar(); publishObject.calendar = cal; - // get a remote path as a pref of the calendar - var remotePath = getCalendarManager().getCalendarPref(cal, "publishpath"); - if (remotePath && remotePath != "") { + // restore the remote ics path preference from the calendar passed in + var remotePath = getCalendarManager().getCalendarPref(cal, "remote-ics-path"); + if (remotePath && remotePath.length && remotePath.length > 0) { publishObject.remotePath = remotePath; } @@ -74,6 +74,11 @@ function publishEntireCalendar() function publishEntireCalendarDialogResponse(CalendarPublishObject, aProgressDialog) { + // store the selected remote ics path as a calendar preference + getCalendarManager().setCalendarPref(CalendarPublishObject.calendar, + "remote-ics-path", + CalendarPublishObject.remotePath); + var itemArray = []; var getListener = { onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail)