add: var detachAllMenu = document.getElementById('file-detachAllAttachments'); var deleteAllMenu = document.getElementById('file-deleteAllAttachments'); if (CanDetachAttachments()) { detachAllMenu.removeAttribute('disabled'); deleteAllMenu.removeAttribute('disabled'); } else { detachAllMenu.setAttribute('disabled', 'true'); deleteAllMenu.setAttribute('disabled', 'true'); } 
context: function FillAttachmentListPopup(popup){  // the FE sometimes call this routine TWICE...I haven't been able to figure out why yet...  // protect against it...  if (!gBuildAttachmentPopupForCurrentMsg) return;   var attachmentIndex = 0;  // otherwise we need to build the attachment view...  // First clear out the old view...  ClearAttachmentMenu(popup);  for (index in currentAttachments)  {    ++attachmentIndex;    addAttachmentToPopup(popup, currentAttachments[index], attachmentIndex);  }  gBuildAttachmentPopupForCurrentMsg = false;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/e604f9264e9376895df91d25d0a4a6039386a3cc/msgHdrViewOverlay.js/buggy/mail/base/content/msgHdrViewOverlay.js