rem: case "None": menuListSelectItem("todo-status-field", "None"); 
add: case "NONE": menuListSelectItem("todo-status-field", "NONE"); 
context: function processToDoStatus(status, passedInCompletedDate){    // RFC2445 doesn't support completedDates without the todo's status    // being "COMPLETED", however twiddling the status menulist shouldn't    // nuking that information at this point (in case you change status    // back to COMPLETED). When we go to store this VTODO as .ics the    // date will get lost.    var completedDate;    if (passedInCompletedDate)        completedDate = passedInCompletedDate;    else        completedDate = null;    // remember the original values    var oldPercentComplete = getElementValue("percent-complete-menulist", "value");    var oldCompletedDate   = getElementValue("completed-date-picker");    switch(status) {    case "":    case "None":        menuListSelectItem("todo-status-field", "None");        disableElement("completed-date-picker");        disableElement("percent-complete-menulist");        disableElement("percent-complete-label");        break;    case "CANCELLED":        menuListSelectItem("todo-status-field", "CANCELLED");        disableElement("completed-date-picker");        disableElement("percent-complete-menulist");        disableElement("percent-complete-label");        break;    case "COMPLETED":        menuListSelectItem("todo-status-field", "COMPLETED");        enableElement("completed-date-picker");        enableElement("percent-complete-menulist");        enableElement("percent-complete-label");        // if there isn't a completedDate, set it to now        if (!completedDate)            completedDate = new Date();        break;    case "IN-PROCESS":        menuListSelectItem("todo-status-field", "IN-PROCESS");        disableElement("completed-date-picker");        enableElement("percent-complete-menulist");        enableElement("percent-complete-label");        break;    case "NEEDS-ACTION":        menuListSelectItem("todo-status-field", "NEEDS-ACTION");        disableElement("completed-date-picker");        enableElement("percent-complete-menulist");        enableElement("percent-complete-label");        break;    }    if (status == "COMPLETED") {        setElementValue("percent-complete-menulist", "100");        setElementValue("completed-date-picker", completedDate);    } else {        setElementValue("percent-complete-menulist", oldPercentComplete);        setElementValue("completed-date-picker", oldCompletedDate);    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b1536756a6f7285857ec2bea9d053f0c60274d40/eventDialog.js/buggy/calendar/resources/content/eventDialog.js