rem: var repeatCheckBox = document.getElementById( "repeat-checkbox" ); var numberRadio = document.getElementById("repeat-numberoftimes-radio"); var numberTextBox = document.getElementById("repeat-numberoftimes-textbox");  if( repeatCheckBox.checked && numberRadio.selected  ) { numberTextBox.removeAttribute( "disabled"  ); } else { numberTextBox.setAttribute( "disabled", "true" ); } 
add: var repeatCheckBox = document.getElementById("repeat-checkbox"); var numberRadio    = document.getElementById("repeat-numberoftimes-radio"); var untilRadio     = document.getElementById("repeat-until-radio"); 
context: function updateUntilItemEnabled(){   var repeatCheckBox = document.getElementById( "repeat-checkbox" );   var numberRadio = document.getElementById("repeat-numberoftimes-radio");   var numberTextBox = document.getElementById("repeat-numberoftimes-textbox");      if( repeatCheckBox.checked && numberRadio.selected  )   {      numberTextBox.removeAttribute( "disabled"  );   }   else   {      numberTextBox.setAttribute( "disabled", "true" );   }   var untilRadio = document.getElementById( "repeat-until-radio" );   var untilPicker = document.getElementById( "repeat-end-date-picker" );      if( repeatCheckBox.checked && untilRadio.selected  )   {      untilPicker.removeAttribute( "disabled"  );   }   else   {      untilPicker.setAttribute( "disabled", "true" );   }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/7cf8f4a5a133269c8abdbc4d7ed791799ba534d2/eventDialog.js/clean/calendar/resources/content/eventDialog.js