add:  changeTitleBar("event"); break; case "todo":  changeMenuState("event", "todo");  componentMenu.selectedIndex = 1;  onDateTimeCheckbox("start-checkbox", "start-datetime"); onDateTimeCheckbox("due-checkbox", "due-datetime"); 
context: function processComponentType(componentType){    var componentMenu = document.getElementById("component-type");    debug("processComponentType: " + componentType );    switch( componentType ) {    case "event":        // Hide and show the appropriate fields and widgets        changeMenuState("todo", "event");        componentMenu.selectedIndex = 0;        // calling just enableElement _should_ work here, but it doesn't        document.getElementById("start-datetime").setAttribute( "disabled", "false" );        enableElement("start-datetime");        enableElement("end-datetime");        // Set menubar title correctly        changeTitleBar("event")        break;    case "todo":        // Hide and show the appropriate fields and widgets        changeMenuState("event", "todo");        componentMenu.selectedIndex = 1;        onDateTimeCheckbox("start-checkbox", "start-datetime")        onDateTimeCheckbox("due-checkbox", "due-datetime")        updateCompletedItemEnabled()        // Set menubar title correctly        changeTitleBar("todo")        break;        //case "journal":    default:        // We were passed an invalid value:        dump("processComponentType: ERROR! Tried to select invalid component type: "+componentType+"\n");        break;    }    // Make the window big enough for all the fields and widgets    //window.sizeToContent();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c26db0ebad7891c247edafc9ae04caf35b509f7c/eventDialog.js/clean/calendar/resources/content/eventDialog.js