Fixing bug 129861: problem with selection in unifinder tree.

This commit is contained in:
mikep%oeone.com 2002-03-21 21:01:23 +00:00
Родитель 69086eec0b
Коммит d40d86614b
2 изменённых файлов: 16 добавлений и 2 удалений

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

@ -243,6 +243,8 @@ function dayEventItemDoubleClick( eventBox, event )
function dayViewHourClick( hourNumber, event )
{
gCalendarWindow.setSelectedHour( hourNumber );
deselectEventInUnifinder();
}
@ -258,6 +260,8 @@ function dayViewHourDoubleClick( hourNumber, event )
var startDate = gCalendarWindow.dayView.getNewEventDate();
newEvent( startDate );
deselectEventInUnifinder();
}
@ -315,6 +319,8 @@ function weekViewHourClick( dayIndex, hourNumber, event )
gCalendarWindow.setSelectedDate( newDate );
gCalendarWindow.setSelectedHour( hourNumber );
deselectEventInUnifinder();
}
@ -334,6 +340,8 @@ function weekViewHourDoubleClick( dayIndex, hourNumber, event )
var startDate = gCalendarWindow.weekView.getNewEventDate();
newEvent( startDate );
deselectEventInUnifinder();
}
@ -412,8 +420,9 @@ function deselectEventInUnifinder( )
{
var Tree = document.getElementById( "unifinder-categories-tree" );
//HACK THIS DOESN"T WORK RIGHT NOW FOR MIKE POTTER????
//Tree.clearItemSelection( );
var TreeItem = document.getElementById( "unifinder-treeitem-"+gUnifinderSelection );
Tree.removeItemFromSelection( TreeItem );
gUnifinderSelection = null;
}

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

@ -99,17 +99,22 @@ var unifinderEventDataSourceObserver =
if( calendarEvent )
{
unifinderRefesh();
selectEventInUnifinder( calendarEvent );
}
},
onModifyItem : function( calendarEvent, originalEvent )
{
unifinderRefesh();
selectEventInUnifinder( calendarEvent );
},
onDeleteItem : function( calendarEvent )
{
unifinderRefesh();
},
onAlarm : function( calendarEvent )