add:  if (canDetach) { detachMenu.removeAttribute('disabled'); deleteMenu.removeAttribute('disabled'); } else { detachMenu.setAttribute('disabled', true); deleteMenu.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');  if (selectedAttachments.length > 0)  {    openMenu.removeAttribute('disabled');    saveMenu.removeAttribute('disabled');  }  else  {    openMenu.setAttribute('disabled', true);    saveMenu.setAttribute('disabled', true);  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/72dc035e6adf5e2dc78545b3dced830c0224d799/msgHdrViewOverlay.js/clean/mail/base/content/msgHdrViewOverlay.js