rem: detachMenu.setAttribute('disabled', true); deleteMenu.setAttribute('disabled', true); 
add: detachMenu.setAttribute('disabled', 'true'); deleteMenu.setAttribute('disabled', 'true'); } if (canDetach) { detachAllMenu.removeAttribute('disabled'); deleteAllMenu.removeAttribute('disabled'); } else { detachAllMenu.setAttribute('disabled', 'true'); deleteAllMenu.setAttribute('disabled', 'true'); 
context: function onShowAttachmentContextMenu(){  // if no attachments are selected, disable the Open and Save...  var attachmentList = document.getElementById('attachmentList');  var selectedAttachments = attachmentList.selectedItems;  var openMenu = document.getElementById('context-openAttachment');  var saveMenu = document.getElementById('context-saveAttachment');  var detachMenu = document.getElementById('context-detachAttachment');  var deleteMenu = document.getElementById('context-deleteAttachment');  var canDetach = false;  if (selectedAttachments.length > 0)  {    var attachment = selectedAttachments[0].attachment    canDetach = attachment.contentType != 'text/x-moz-deleted' &&        !(/news-message:/.test(attachment.messageUri)) &&         (!(/imap-message/.test(attachment.messageUri)) || CheckOnline());    openMenu.removeAttribute('disabled');    saveMenu.removeAttribute('disabled');  }  else  {    openMenu.setAttribute('disabled', true);    saveMenu.setAttribute('disabled', true);  }  if (canDetach)  {    detachMenu.removeAttribute('disabled');    deleteMenu.removeAttribute('disabled');  }  else  {    detachMenu.setAttribute('disabled', true);    deleteMenu.setAttribute('disabled', true);  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/bc243a223dbcfdc297808ff9ab586bd15d688811/msgHdrViewOverlay.js/buggy/mail/base/content/msgHdrViewOverlay.js