Bug 329669 Views don't update after changing timezone setting - restart required, r=dmose

This commit is contained in:
jminta%gmail.com 2006-03-28 02:50:22 +00:00
Родитель 63181055fc
Коммит 5352b8fd86
5 изменённых файлов: 41 добавлений и 5 удалений

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

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