rem: enableElement("percent-complete-menulist"); 
add: enableElement("percent-complete-textbox"); 
context: function updateToDoStatus(status, passedInCompletedDate){    // RFC2445 doesn't support completedDates without the todo's status    // being "COMPLETED", however twiddling the status menulist shouldn't    // destroy 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");    var oldCompletedDate   = getElementValue("completed-date-picker");    switch (status) {    case "":    case "NONE":        document.getElementById("todo-status").selectedIndex = 0;        disableElement("percent-complete-menulist");        disableElement("percent-complete-label");        break;    case "CANCELLED":        document.getElementById("todo-status").selectedIndex = 4;        disableElement("percent-complete-menulist");        disableElement("percent-complete-label");        break;    case "COMPLETED":        document.getElementById("todo-status").selectedIndex = 3;        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":        document.getElementById("todo-status").selectedIndex = 2;        disableElement("completed-date-picker");        enableElement("percent-complete-menulist");        enableElement("percent-complete-label");        break;    case "NEEDS-ACTION":        document.getElementById("todo-status").selectedIndex = 1;        enableElement("percent-complete-menulist");        enableElement("percent-complete-label");        break;    }    if (status == "COMPLETED") {        setElementValue("percent-complete-menulist", "100");        setElementValue("completed-date-picker", completedDate);        enableElement("completed-date-picker");    } else {        setElementValue("percent-complete-menulist", oldPercentComplete);        setElementValue("completed-date-picker", oldCompletedDate);        disableElement("completed-date-picker");    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ad76492def133383e381a02afa958963529a4660/calendar-event-dialog.js/buggy/calendar/base/content/calendar-event-dialog.js