зеркало из https://github.com/mozilla/pjs.git
Checked in proposed fix for bug 188890: Mini month view needs to observe week start pref
This commit is contained in:
Родитель
e456bec055
Коммит
dacf3b3ddf
|
@ -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 ) ) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче