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)