rem: 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" ); } 
add: if( repeatCheckBox.checked && numberRadio.selected  ) enableElement("repeat-numberoftimes-textbox"); else disableElement("repeat-numberoftimes-textbox");  if( repeatCheckBox.checked && untilRadio.selected ) enableElement("repeat-end-date-picker"); else disableElement("repeat-end-date-picker"); 
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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6dbfd3c82c9a9483216065b0d5dde2a1b40a4fae/eventDialog.js/clean/calendar/resources/content/eventDialog.js