rem: openDialog( "chrome: 
add: openDialog( "chrome: 
context: function newEvent( startDate, endDate ){   // set up a bunch of args to pass to the dialog      var args = new Object();      args.mode = "new";      args.onOk =  self.addEventDialogResponse;       args.calendarEvent = createEvent();      args.calendarEvent.start.setTime( startDate );      if( !endDate )   {      var MinutesToAddOn = gCalendarWindow.calendarPreferences.getPref( "defaulteventlength" );         var endDateTime = startDate.getTime() + ( 1000 * 60 * MinutesToAddOn );         args.calendarEvent.end.setTime( endDateTime );   }   else   {      args.calendarEvent.end.setTime( endDate.getTime() );   }   // open the dialog non modally   openDialog( "chrome://calendar/content/calendarEventDialog.xul", "caNewEvent", "chrome", args );}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/15cd60f1dac62d9bdc6cc879e7af1b39a1f1df22/calendar.js/buggy/calendar/resources/content/calendar.js