Checked in attachment #135921 and attachment 135927 for

bug 210236: [RFE] Currently selected event should be highlighed in the calendar window
This commit is contained in:
mostafah%oeone.com 2003-11-19 17:21:56 +00:00
Родитель 167eb55b0f
Коммит d80811ad81
2 изменённых файлов: 21 добавлений и 5 удалений

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

@ -392,7 +392,7 @@ function weekEventItemClick( eventBox, event )
newDate.setDate( eventBox.calendarEventDisplay.event.start.day );
gCalendarWindow.setSelectedDate( newDate );
gCalendarWindow.setSelectedDate( newDate, false );
}
if ( event )

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

@ -114,10 +114,26 @@ function WeekView( calendarWindow )
{
onSelectionChanged : function( EventSelectionArray )
{
for( i = 0; i < EventSelectionArray.length; i++ )
{
gCalendarWindow.weekView.selectBoxForEvent( EventSelectionArray[i] );
}
if( EventSelectionArray.length > 0 )
{
//if there are selected events.
//for some reason, this function causes the tree to go into a select / unselect loop
//putting it in a settimeout fixes this.
setTimeout( "gCalendarWindow.weekView.clearSelectedDate();", 1 );
var i = 0;
for( i = 0; i < EventSelectionArray.length; i++ )
{
gCalendarWindow.weekView.selectBoxForEvent( EventSelectionArray[i] );
}
}
else
{
//select the proper day
gCalendarWindow.weekView.hiliteSelectedDate();
}
}
}