rem: editNewEvent( calendarEvent ); 
add:   var selectedCalendarItem = document.getElementById( "list-calendars-listbox" ).selectedItem;  var server = null;  if( selectedCalendarItem ) { server = selectedCalendarItem.calendarObject.path; }  editNewEvent( calendarEvent, server ); 
context: function newEvent( startDate, endDate ){   // create a new event to be edited and added   var calendarEvent = createEvent();      calendarEvent.start.setTime( startDate );      if( !endDate )   {      var MinutesToAddOn = getIntPref(gCalendarWindow.calendarPreferences.calendarPref, "event.defaultlength", 60 );         var endDateTime = startDate.getTime() + ( 1000 * 60 * MinutesToAddOn );         calendarEvent.end.setTime( endDateTime );   }   else   {      calendarEvent.end.setTime( endDate.getTime() );   }   editNewEvent( calendarEvent );}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/eab0e9c1b22fbe19b1f43a4c3dbc78ee3a9850c1/calendar.js/clean/calendar/resources/content/calendar.js