rem: if( confirm( "Are you sure you want to delete everything?" ) ) 
add: if( confirm( "Are you sure you want to delete all selected events?" ) ) 
context: function unifinderDeleteCommand( DoNotConfirm ){   if( unifinderToDoHasFocus() )   {      unifinderDeleteToDoCommand( DoNotConfirm );      return;   }      var SelectedItems = gCalendarWindow.EventSelection.selectedEvents;      if( SelectedItems.length == 1 )   {      var calendarEvent = SelectedItems[0];      if ( calendarEvent.title != "" ) {         if( !DoNotConfirm ) {                    if ( confirm( confirmDeleteEvent+" "+calendarEvent.title+"?" ) ) {               gICalLib.deleteEvent( calendarEvent.id );               gCalendarWindow.clearSelectedEvent( calendarEvent );            }         }         else         {            gICalLib.deleteEvent( calendarEvent.id );            gCalendarWindow.clearSelectedEvent( calendarEvent );         }      }      else      {         if( !DoNotConfirm ) {                    if ( confirm( confirmDeleteUntitledEvent ) ) {               gICalLib.deleteEvent( calendarEvent.id );               gCalendarWindow.clearSelectedEvent( calendarEvent );            }         }         else         {            gICalLib.deleteEvent( calendarEvent.id );            gCalendarWindow.clearSelectedEvent( calendarEvent );         }      }   }   else if( SelectedItems.length > 1 )   {      gICalLib.batchMode = true;            if( !DoNotConfirm )      {         if( confirm( "Are you sure you want to delete everything?" ) )         {            gCalendarWindow.clearSelectedEvent( calendarEvent );                        while( SelectedItems.length )            {               var ThisItem = SelectedItems.pop();                              gICalLib.deleteEvent( ThisItem.id );            }         }      }      else      {         gCalendarWindow.clearSelectedEvent( calendarEvent );                     while( SelectedItems.length )         {            var ThisItem = SelectedItems.pop();                        gICalLib.deleteEvent( ThisItem.id );         }      }      gICalLib.batchMode = false;   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d7dc655e172d7f9cfafd4afc62c30984c16ce916/unifinder.js/buggy/calendar/resources/content/unifinder.js