rem: var alarmMenu = document.getElementById("alarm-type"); if( alarmMenu.selectedItem ) { dump("processAlarmType: "+alarmMenu.selectedItem.value+"\n"); switch( alarmMenu.selectedItem.value ) { case "none": hideElement("alarm-length-field"); hideElement("alarm-length-units"); hideElement("alarm-box-email"); break; case "popup": showElement("alarm-length-field"); showElement("alarm-length-units"); hideElement("alarm-box-email"); break; case "popupAndSound": showElement("alarm-length-field"); showElement("alarm-length-units"); hideElement("alarm-box-email"); break; case "email": showElement("alarm-length-field"); showElement("alarm-length-units"); showElement("alarm-box-email"); break; }  window.sizeToContent(); } else dump("processAlarmType: no alarmMenu.selectedItem!\n"); 
add: var alarmMenu = document.getElementById("alarm-type"); if( alarmMenu.selectedItem ) { debug("processAlarmType: " + alarmMenu.selectedItem.value ); switch( alarmMenu.selectedItem.value ) { case "none": hideElement("alarm-length-field"); hideElement("alarm-length-units"); hideElement("alarm-box-email"); break; case "popup": showElement("alarm-length-field"); showElement("alarm-length-units"); hideElement("alarm-box-email"); break; case "popupAndSound": showElement("alarm-length-field"); showElement("alarm-length-units"); hideElement("alarm-box-email"); break; case "email": showElement("alarm-length-field"); showElement("alarm-length-units"); showElement("alarm-box-email"); break; }  window.sizeToContent(); } else dump("processAlarmType: no alarmMenu.selectedItem!\n"); 
context: function processAlarmType(){  var alarmMenu = document.getElementById("alarm-type");  if( alarmMenu.selectedItem ) {    dump("processAlarmType: "+alarmMenu.selectedItem.value+"\n");    switch( alarmMenu.selectedItem.value )    {      case "none":        hideElement("alarm-length-field");        hideElement("alarm-length-units");        hideElement("alarm-box-email");        break;      case "popup":        showElement("alarm-length-field");        showElement("alarm-length-units");        hideElement("alarm-box-email");        break;      case "popupAndSound":        showElement("alarm-length-field");        showElement("alarm-length-units");        hideElement("alarm-box-email");        break;      case "email":        showElement("alarm-length-field");        showElement("alarm-length-units");        showElement("alarm-box-email");        break;    }    // Make the window big enough for all the fields and widgets    window.sizeToContent();  }  else    dump("processAlarmType: no alarmMenu.selectedItem!\n");}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6dbfd3c82c9a9483216065b0d5dde2a1b40a4fae/eventDialog.js/clean/calendar/resources/content/eventDialog.js