rem: var categoriesStringBundle = srGetStrBundle("chrome:  var MinutesToAddOn = getIntPref(gCalendarWindow.calendarPreferences.calendarPref, "event.defaultlength", categoriesStringBundle.GetStringFromName("defaultEventLength" ) ); 
add: var MinutesToAddOn = getIntPref(gCalendarWindow.calendarPreferences.calendarPref, "event.defaultlength", gCalendarBundle.getString("defaultEventLength" ) ); 
context: function newEvent( startDate, endDate ){   // create a new event to be edited and added   var calendarEvent = createEvent();      calendarEvent.start.setTime( startDate );      if( !endDate )   {      var categoriesStringBundle = srGetStrBundle("chrome://calendar/locale/calendar.properties");         var MinutesToAddOn = getIntPref(gCalendarWindow.calendarPreferences.calendarPref, "event.defaultlength", categoriesStringBundle.GetStringFromName("defaultEventLength" ) );         var endDateTime = startDate.getTime() + ( 1000 * 60 * MinutesToAddOn );         calendarEvent.end.setTime( endDateTime );   }   else   {      calendarEvent.end.setTime( endDate.getTime() );   }      //get the selected calendar   var selectedCalendarItem = document.getElementById( "list-calendars-listbox" ).selectedItem;      var server = null;   if( selectedCalendarItem )   {      server = selectedCalendarItem.getAttribute( "calendarPath" );   }      editNewEvent( calendarEvent, server );}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0f4889277ea2d47b71158b50d6b917786f8422b8/calendar.js/clean/calendar/resources/content/calendar.js