зеркало из https://github.com/mozilla/pjs.git
Bug 323180 Publish Remote Calendar should remember the last location used. patch by ssitter@googlemail.com, r=jminta
This commit is contained in:
Родитель
ffa9f76629
Коммит
8e3214e2ab
|
@ -62,9 +62,9 @@ function publishEntireCalendar()
|
||||||
var cal = getDefaultCalendar();
|
var cal = getDefaultCalendar();
|
||||||
publishObject.calendar = cal;
|
publishObject.calendar = cal;
|
||||||
|
|
||||||
// get a remote path as a pref of the calendar
|
// restore the remote ics path preference from the calendar passed in
|
||||||
var remotePath = getCalendarManager().getCalendarPref(cal, "publishpath");
|
var remotePath = getCalendarManager().getCalendarPref(cal, "remote-ics-path");
|
||||||
if (remotePath && remotePath != "") {
|
if (remotePath && remotePath.length && remotePath.length > 0) {
|
||||||
publishObject.remotePath = remotePath;
|
publishObject.remotePath = remotePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,6 +74,11 @@ function publishEntireCalendar()
|
||||||
|
|
||||||
function publishEntireCalendarDialogResponse(CalendarPublishObject, aProgressDialog)
|
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 itemArray = [];
|
||||||
var getListener = {
|
var getListener = {
|
||||||
onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail)
|
onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче