add: var sendInvitesCheckbox = document.getElementById("send-invitations-checkbox"); if (item.hasProperty("X-MOZ-SEND-INVITATIONS")) { sendInvitesCheckbox.checked = (item.getProperty("X-MOZ-SEND-INVITATIONS") == "TRUE"); } else { sendInvitesCheckbox.checked = false; } 
context: function loadDetails() {    gDetailsShown = true;    var item = window.calendarItem;    /* attendence */    var attendeeListBox = document.getElementById("attendees-list");    attendeeListBox.attendees = item.getAttendees({});    /* Status */    setElementValue("item-url",         item.getProperty("URL"));    setElementValue("item-description", item.getProperty("DESCRIPTION"));    if (isEvent(item)) {        setElementValue("event-status", item.getProperty("STATUS"));    } else {        setElementValue("todo-status", item.getProperty("STATUS"));    }    /* Task completed date */    if (item.completedDate) {        updateToDoStatus(item.status, item.completedDate.jsDate);    } else {        updateToDoStatus(item.status);    }    /* Task percent complete */    if (isToDo(item)) {        var percentCompleteInteger = 0;        var percentCompleteProperty = item.getProperty("PERCENT-COMPLETE");        if (percentCompleteProperty != null) {            percentCompleteInteger = parseInt(percentCompleteProperty);        }        if (percentCompleteInteger < 0) {            percentCompleteInteger = 0;        } else if (percentCompleteInteger > 100) {            percentCompleteInteger = 100;        }        setElementValue("percent-complete-textbox", percentCompleteInteger);    }    /* Priority */    var priorityInteger = parseInt(item.priority);    if (priorityInteger >= 1 && priorityInteger <= 4) {        document.getElementById("priority-levels").selectedIndex = 3; // high priority    } else if (priorityInteger == 5) {        document.getElementById("priority-levels").selectedIndex = 2; // medium priority    } else if (priorityInteger >= 6 && priorityInteger <= 9) {        document.getElementById("priority-levels").selectedIndex = 1; // low priority    } else {        document.getElementById("priority-levels").selectedIndex = 0; // not defined    }    /* Privacy */    switch (item.privacy) {        case "PUBLIC":        case "PRIVATE":        case "CONFIDENTIAL":            setElementValue("privacy-menulist", item.privacy);            break;        case "":            setElementValue("private-menulist", "PUBLIC");            break;        default:  // bogus value            dump("ERROR! Event has invalid privacy string: " + item.privacy + "\n");            break;    }    // update alarm checkbox/label/settings button    updateAlarm();    updateTaskAlarmWarnings();    updateURL(item.getProperty("URL"));    return;}
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