rem: alarmField.setAttribute( "disabled", "true" ); alarmMenu.setAttribute( "disabled", "true"  ); alarmLabel.setAttribute( "disabled", "true" ); alarmEmailField.setAttribute( "disabled", "true" );  alarmEmailCheckbox.setAttribute( "disabled", "true" ); alarmEmailCheckbox.setAttribute( "checked", false ); 
add: setFieldValue( alarmField, true, "disabled" ); setFieldValue( alarmMenu, true, "disabled" ); setFieldValue( alarmLabel, true, "disabled" ); setFieldValue( alarmEmailField, true, "disabled" ); setFieldValue( alarmEmailCheckbox, true, "disabled" ); setFieldValue( alarmEmailCheckbox, false, "checked" ); 
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: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/e73ed928b8f708de374b049a8af1563244bd627c/calendarEventDialog.js/clean/calendar/resources/content/calendarEventDialog.js