Bug #240138 --> Add tooltips showing the email address on address nodes we are showing just the display name for.

This commit is contained in:
scott%scott-macgregor.org 2004-04-20 00:21:33 +00:00
Родитель 0f9851fcb6
Коммит cf3dcf9a8a
2 изменённых файлов: 19 добавлений и 0 удалений

Просмотреть файл

@ -870,7 +870,13 @@ function AddExtraAddressProcessing(emailAddress, addressNode)
var emailAddress = addressNode.getTextAttribute("emailAddress");
if (gShowCondensedEmailAddresses && displayName && useDisplayNameForAddress(emailAddress))
{
addressNode.setAttribute('label', displayName);
addressNode.setAttribute("tooltiptext", emailAddress);
addressNode.setAttribute("tooltip", "emailAddressTooltip");
}
else
addressNode.removeAttribute("tooltiptext");
}
function fillEmailAddressPopup(emailAddressNode)
@ -881,6 +887,16 @@ function fillEmailAddressPopup(emailAddressNode)
emailAddressPlaceHolder.setAttribute('label', emailAddress);
}
// Public method called to generate a tooltip over a condensed display name
function fillInEmailAddressTooltip(addressNode)
{
var emailAddress = addressNode.getTextAttribute('emailAddress');
var tooltipNode = document.getElementById("attachmentListTooltip");
tooltipNode.setAttribute("label", attachmentName);
return true;
}
// returns true if we should use the display name for this address
// otherwise returns false
function useDisplayNameForAddress(emailAddress)

Просмотреть файл

@ -54,6 +54,9 @@
<tooltip id="attachmentListTooltip"
onpopupshowing="return FillInAttachmentTooltip(document.tooltipNode);"/>
<tooltip id="emailAddressTooltip"
onpopupshowing="return fillInEmailAddressTooltip(document.tooltipNode);"/>
<hbox id="msgHeaderView" keywordrelated="true" originalclass="none" persist="state">
<vbox flex="1">
<!-- the message pane consists of 3 'boxes'. Box #1 is a grid, showing a brief view of the headers -->