Bug 323180 Publish Remote Calendar should remember the last location used. patch by ssitter@googlemail.com, r=jminta

This commit is contained in:
jminta%gmail.com 2006-01-17 00:12:18 +00:00
Родитель 2dcf4db62a
Коммит a84553e429
1 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -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)