add: document.getElementById("send-invitations-checkbox").collapsed = isSunbird();  
context: function onLoad(){    var args = window.arguments[0];    window.onAcceptCallback = args.onOk;    window.calendarItem = args.calendarEvent;    window.originalItem = args.calendarEvent;    window.mode = args.mode;    window.recurrenceInfo = null;    // the calling entity provides us with an object that is responsible    // for recording details about the initiated modification. the 'finalize'-property    // is our hook in order to receive a notification in case the operation needs    // to be terminated prematurely. this function will be called if the calling    // entity needs to immediately terminate the pending modification. in this    // case we serialize the item and close the window.    if (args.job) {        // keep this context...        var self = this;        // store the 'finalize'-functor in the provided job-object.        args.job.finalize = function finalize() {            // store any pending modifications...            self.onAccept();            var item = window.calendarItem;            // ...and close the window.            window.close();            return item;        }    }    if (window.calendarItem.calendar && window.calendarItem.calendar.readOnly) {        gReadOnlyMode = true;    }    /* add calendars to the calendar menulist */    var calendarList = document.getElementById("item-calendar");    var calendars = getCalendarManager().getCalendars({});    for (i in calendars) {        var calendar = calendars[i];        var menuitem = calendarList.appendItem(calendar.name, i);        menuitem.calendar = calendar;    }    loadDialog(window.calendarItem);    // figure out what the title of the dialog should be and set it    updateTitle();    // hide rows based on if this is an event or todo    updateStyle();    // update the accept button    updateAccept();    // update datetime pickers    updateDueDate();    updateEntryDate();    // update datetime pickers    updateAllDay();    // update recurrence button    updateRecurrence();    // update our size!    window.sizeToContent();    document.getElementById("item-title").focus();    opener.setCursor("auto");}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/fe11229c95bb6027c106a202b2c9ec867b87c3cb/calendar-event-dialog.js/clean/calendar/base/content/calendar-event-dialog.js