rem: /* This no longer works since we moved to a tree */  var SearchTree = document.getElementById( "unifinder-search-results-listbox" );  SearchTree.setAttribute( "suppressonselect", "true" );  SearchTree.treeBoxObject.selection.clearSelection();  if( EventSelectionArray.length > 0 ) { for( i = 0; i < EventSelectionArray.length; i++ ) { var SearchTreeItem = document.getElementById( "search-unifinder-treeitem-"+EventSelectionArray[i].id );  if( SearchTreeItem ) { var Index = SearchTree.contentView.getIndexOfItem( SearchTreeItem );  SearchTree.treeBoxObject.ensureRowIsVisible( Index );  SearchTree.treeBoxObject.selection.toggleSelect( Index ); } } } /*SearchTree.clearSelection();  if( EventSelectionArray.length > 0 ) { for( i = 0; i < EventSelectionArray.length; i++ ) { var SearchTreeItem = document.getElementById( "search-unifinder-treeitem-"+EventSelectionArray[i].id );   if( SearchTreeItem ) SearchTree.addItemToSelection( SearchTreeItem ); } } dump( "\nAllow on select now!" ); SearchTree.removeAttribute( "suppressonselect" ); */ 
add: selectSelectedEvents( ); 
context: function calendarUnifinderInit( ){   var unifinderEventSelectionObserver =    {      onSelectionChanged : function( EventSelectionArray )      {         /*          This no longer works since we moved to a tree          */                  var SearchTree = document.getElementById( "unifinder-search-results-listbox" );                  SearchTree.setAttribute( "suppressonselect", "true" );         SearchTree.treeBoxObject.selection.clearSelection();                  if( EventSelectionArray.length > 0 )         {            for( i = 0; i < EventSelectionArray.length; i++ )            {               var SearchTreeItem = document.getElementById( "search-unifinder-treeitem-"+EventSelectionArray[i].id );                              if( SearchTreeItem )               {                  var Index = SearchTree.contentView.getIndexOfItem( SearchTreeItem );                                    SearchTree.treeBoxObject.ensureRowIsVisible( Index );                        SearchTree.treeBoxObject.selection.toggleSelect( Index );               }            }         }         /*SearchTree.clearSelection();                  if( EventSelectionArray.length > 0 )         {            for( i = 0; i < EventSelectionArray.length; i++ )            {               var SearchTreeItem = document.getElementById( "search-unifinder-treeitem-"+EventSelectionArray[i].id );                              //you need this for when an event is added. It doesn't yet exist.               if( SearchTreeItem )                  SearchTree.addItemToSelection( SearchTreeItem );            }         }         dump( "\nAllow on select now!" );         SearchTree.removeAttribute( "suppressonselect" );         */      }   }         gCalendarWindow.EventSelection.addObserver( unifinderEventSelectionObserver );}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/93f80c031cb68d85aa4ec611eb155fac4dcf179d/unifinder.js/clean/calendar/resources/content/unifinder.js