rem: var alarmField = document.getElementById( "alarm-length-field" ); var alarmMenu = document.getElementById( "alarm-length-units" ); var alarmLabel = document.getElementById( "alarm-length-text" ); 
add: var alarmField = "alarm-length-field"; var alarmMenu = "alarm-length-units"; var alarmLabel = "alarm-length-text"; 
context: function updateAlarmItemEnabled(){   var alarmCheckBox = document.getElementById( "alarm-checkbox" );      var alarmField = document.getElementById( "alarm-length-field" );   var alarmMenu = document.getElementById( "alarm-length-units" );   var alarmLabel = document.getElementById( "alarm-length-text" );         var alarmEmailCheckbox = document.getElementById( "alarm-email-checkbox" );   var alarmEmailField = document.getElementById( "alarm-email-field" );   if( alarmCheckBox.checked )   {      // call remove attribute beacuse some widget code checks for the presense of a       // disabled attribute, not the value.            alarmField.removeAttribute( "disabled" );      alarmMenu.removeAttribute( "disabled"  );      alarmLabel.removeAttribute( "disabled" );      alarmEmailCheckbox.removeAttribute( "disabled" );   }   else   {      alarmField.setAttribute( "disabled", "true" );      alarmMenu.setAttribute( "disabled", "true"  );      alarmLabel.setAttribute( "disabled", "true" );      alarmEmailField.setAttribute( "disabled", "true" );      alarmEmailCheckbox.setAttribute( "disabled", "true" );      alarmEmailCheckbox.setAttribute( "checked", false );   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/2916e62d7bb7a5616da721a0909b35d27c946925/eventDialog.js/buggy/calendar/resources/content/eventDialog.js