rem:  var datePickerValue = document.getElementById( "exceptions-date-picker" ).value;  if( isAlreadyException( datePickerValue ) || document.getElementById( "repeat-checkbox" ).getAttribute( "checked" ) != "true" ) { document.getElementById( "exception-add-button" ).setAttribute( "disabled", "true" ); } else { document.getElementById( "exception-add-button" ).removeAttribute( "disabled" ); } 
add:  var datePickerValue = document.getElementById( "exceptions-date-picker" ).value;  if( isAlreadyException( datePickerValue ) || document.getElementById( "repeat-checkbox" ).getAttribute( "checked" ) != "true" ) { disableElement("exception-add-button"); } else { enableElement("exception-add-button"); } 
context: function updateAddExceptionButton(){   //get the date from the picker   var datePickerValue = document.getElementById( "exceptions-date-picker" ).value;      if( isAlreadyException( datePickerValue ) || document.getElementById( "repeat-checkbox" ).getAttribute( "checked" ) != "true" )   {      document.getElementById( "exception-add-button" ).setAttribute( "disabled", "true" );   }   else   {      document.getElementById( "exception-add-button" ).removeAttribute( "disabled" );   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6dbfd3c82c9a9483216065b0d5dde2a1b40a4fae/eventDialog.js/clean/calendar/resources/content/eventDialog.js