rem: refreshEventTree( getAndSetEventTable() );  refreshToDoTree( false );  gCalendarWindow.currentView.refreshEvents(); 
add: refreshView(); 
context: function deleteCalendar( ){   // Show a dialog with option to import events with or without dialogs   var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService();    promptService = promptService.QueryInterface(Components.interfaces.nsIPromptService);    var result = {value:0};    var buttonPressed =            promptService.confirmEx(window,                             gCalendarBundle.getString( "deleteCalendarTitle" ), gCalendarBundle.getString( "deleteCalendarMessage" ),                             (promptService.BUTTON_TITLE_IS_STRING * promptService.BUTTON_POS_0) +                             (promptService.BUTTON_TITLE_CANCEL * promptService.BUTTON_POS_1) +                             (promptService.BUTTON_TITLE_IS_STRING * promptService.BUTTON_POS_2),                             gCalendarBundle.getString( "deleteCalendarOnly" ),null,gCalendarBundle.getString( "deleteCalendarAndFile" ),null, result);       var IdToDelete = gCalendarWindow.calendarManager.getSelectedCalendarId()      var calendarObjectToDelete = gCalendarWindow.calendarManager.rdf.getNode( IdToDelete );   if(buttonPressed == 0) // Delete calendar   {       gCalendarWindow.calendarManager.deleteCalendar( calendarObjectToDelete, false );   }   else if(buttonPressed == 2) //delete calendar and file   {       gCalendarWindow.calendarManager.deleteCalendar( calendarObjectToDelete, true );   }    else if(buttonPressed == 1) // CANCEL   {       return false;    }       refreshEventTree( getAndSetEventTable() );   refreshToDoTree( false );   gCalendarWindow.currentView.refreshEvents();   return true;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/fd33d8c63bcbd3796440125989f0ff9297618906/calendarManager.js/clean/calendar/resources/content/calendarManager.js