Checked in proposed fix for bug 188890: Mini month view needs to observe week start pref

This commit is contained in:
mostafah%oeone.com 2003-11-12 18:40:08 +00:00
Родитель e456bec055
Коммит dacf3b3ddf
3 изменённых файлов: 10 добавлений и 1 удалений

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

@ -79,6 +79,9 @@ function CalendarWindow( )
{
//setup the preferences
this.calendarPreferences = new calendarPreferences( this );
// miniMonth used by preferences
this.miniMonth = document.getElementById( "lefthandcalendar" );
//setup the calendars
this.calendarManager = new calendarManager( this );

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

@ -104,9 +104,10 @@
</constructor>
<method name="refreshDisplay">
<parameter name="aReinitialize" />
<body>
<![CDATA[
if (!this.mInitialized) {
if (!this.mInitialized || aReinitialize) {
this.mInitialized = true;
// Find out which should be the first day of the week

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

@ -59,14 +59,19 @@ calendarPrefObserver.prototype =
case "calendar.event.defaultendhour":
case "calendar.weeks.inview":
case "calendar.previousweeks.inview":
this.CalendarPreferences.calendarWindow.currentView.refresh();
break;
case "calendar.week.start":
this.CalendarPreferences.calendarWindow.currentView.refresh();
this.CalendarPreferences.calendarWindow.miniMonth.refreshDisplay(true);
break;
case "calendar.date.format" :
this.CalendarPreferences.calendarWindow.currentView.refresh();
refreshEventTree( getAndSetEventTable() );
toDoUnifinderRefresh();
break;
case "calendar.alarms.showmissed":
if( subject.getBoolPref( prefName ) ) {