rem: else 
add:  gICalLib.batchMode = true; for( i = 0; i < SelectedItems.length; i++ ) 
context: function deleteEventCommand( DoNotConfirm ){   var SelectedItems = gCalendarWindow.EventSelection.selectedEvents;      if( SelectedItems.length == 1 )   {      var calendarEvent = SelectedItems[0];      if ( calendarEvent.title != "" ) {         if( !DoNotConfirm ) {                    if ( confirm( confirmDeleteEvent+" "+calendarEvent.title+"?" ) )             {               refreshRemoteCalendarAndRunFunction( calendarEvent.id, calendarEvent.parent.server, "deleteEvent" );            }         }         else         {            refreshRemoteCalendarAndRunFunction( calendarEvent.id, calendarEvent.parent.server, "deleteEvent" );                        gCalendarWindow.clearSelectedEvent( calendarEvent );         }      }      else      {         if( !DoNotConfirm ) {                    if ( confirm( confirmDeleteUntitledEvent ) ) {               refreshRemoteCalendarAndRunFunction( calendarEvent.id, calendarEvent.parent.server, "deleteEvent" );               gCalendarWindow.clearSelectedEvent( calendarEvent );            }         }         else         {            refreshRemoteCalendarAndRunFunction( calendarEvent.id, calendarEvent.parent.server, "deleteEvent" );            gCalendarWindow.clearSelectedEvent( calendarEvent );         }      }   }   else if( SelectedItems.length > 1 )   {      var NumberOfEventsToDelete = SelectedItems.length;      gICalLib.batchMode = true;            var ThisItem;      if( !DoNotConfirm )      {         if( confirm( "Are you sure you want to delete all selected events?" ) )         {            gCalendarWindow.clearSelectedEvent( calendarEvent );                        while( SelectedItems.length )            {               ThisItem = SelectedItems.pop();                              gICalLib.deleteEvent( ThisItem.id );            }         }      }      else      {         gCalendarWindow.clearSelectedEvent( calendarEvent );                     while( SelectedItems.length )         {            ThisItem = SelectedItems.pop();                        gICalLib.deleteEvent( ThisItem.id );         }      }      gICalLib.batchMode = false;      /*      var NumberOfTotalEvents  = gCalendarWindow.calendarEvent.getAllEvents().length;      if( NumberOfTotalEvents = NumberOfEventsToDelete )      {         //highlight today's date         gCalendarWindow.currentView.hiliteTodaysDate();      }      */   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/564f0515a1381233ac4bd5a2cbf9f6025d8619b2/calendar.js/clean/calendar/resources/content/calendar.js