зеркало из https://github.com/mozilla/pjs.git
Bug 329669 Views don't update after changing timezone setting - restart required, r=dmose
This commit is contained in:
Родитель
63181055fc
Коммит
5352b8fd86
|
@ -116,6 +116,16 @@
|
|||
viewElem.setStartEndMinutes(this.calView.mStartMin,
|
||||
this.calView.mEndMin);
|
||||
break;
|
||||
case "calendar.timezone.local":
|
||||
var viewElem = document.getAnonymousElementByAttribute(
|
||||
this.calView, "anonid", "view-element");
|
||||
viewElem.timezone = subj.getCharPref(pref);
|
||||
if (!this.calView.startDay || !this.calView.endDay) {
|
||||
// Don't refresh if we're not initialized
|
||||
return;
|
||||
}
|
||||
this.calView.goToDay(this.calView.selectedDay);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
|
|
@ -114,6 +114,16 @@
|
|||
// Refresh the view so the settings take effect
|
||||
this.calView.goToDay(this.calView.selectedDay);
|
||||
break;
|
||||
case "calendar.timezone.local":
|
||||
var viewElem = document.getAnonymousElementByAttribute(
|
||||
this.calView, "anonid", "view-element");
|
||||
viewElem.timezone = subj.getCharPref(pref);
|
||||
if (!this.calView.startDay || !this.calView.endDay) {
|
||||
// Don't refresh if we're not initialized
|
||||
return;
|
||||
}
|
||||
this.calView.goToDay(this.calView.selectedDay);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
|
|
@ -128,6 +128,16 @@
|
|||
// Just refresh, the goToDay function will notice
|
||||
this.calView.goToDay(this.calView.selectedDay);
|
||||
break;
|
||||
case "calendar.timezone.local":
|
||||
var viewElem = document.getAnonymousElementByAttribute(
|
||||
this.calView, "anonid", "view-element");
|
||||
viewElem.timezone = subj.getCharPref(pref);
|
||||
if (!this.calView.startDay || !this.calView.endDay) {
|
||||
// Don't refresh if we're not initialized
|
||||
return;
|
||||
}
|
||||
this.calView.goToDay(this.calView.selectedDay);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
|
|
@ -149,6 +149,16 @@
|
|||
// Refresh the view. goToDay will do the calculation
|
||||
this.calView.goToDay(this.calView.selectedDay);
|
||||
break;
|
||||
case "calendar.timezone.local":
|
||||
var viewElem = document.getAnonymousElementByAttribute(
|
||||
this.calView, "anonid", "view-element");
|
||||
viewElem.timezone = subj.getCharPref(pref);
|
||||
if (!this.calView.startDay || !this.calView.endDay) {
|
||||
// Don't refresh if we're not initialized
|
||||
return;
|
||||
}
|
||||
this.calView.goToDay(this.calView.selectedDay);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
|
|
@ -82,12 +82,8 @@ calendarPrefObserver.prototype =
|
|||
}
|
||||
break;
|
||||
|
||||
case "calendar.local-time-zone":
|
||||
case "calendar.timezone.local":
|
||||
gDefaultTimezone = subject.getCharPref( prefName );
|
||||
|
||||
if (this.CalendarPreferences.calendarWindow.currentView != null) {
|
||||
this.CalendarPreferences.calendarWindow.currentView.refresh();
|
||||
}
|
||||
refreshEventTree();
|
||||
toDoUnifinderRefresh();
|
||||
break;
|
||||
|
|
Загрузка…
Ссылка в новой задаче