bug #80220 --> show a tooltip over long attachments

Bug #79584 --> remove the .Print option from the attachment popup.
r/sr=sspitzer
This commit is contained in:
mscott%netscape.com 2001-07-03 01:18:41 +00:00
Родитель 33c273f62c
Коммит 17af1cfe43
3 изменённых файлов: 22 добавлений и 9 удалений

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

@ -117,6 +117,7 @@ Rights Reserved.
<popup id="threadPaneContext"/>
<popup id="folderPaneContext"/>
<popup id="attachmentTreeContext"/>
<popup id="attachmentTreeTooltip"/>
<popup id="emailAddressPopup" popupanchor="bottomleft">
<menuitem label="&AddToAddressBook.label;"

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

@ -788,17 +788,18 @@ function displayAttachmentsForExpandedView()
// we need to create a tree item, a tree row and a tree cell to insert the attachment
// into the attachment tree..
item = document.createElement("treeitem");
row = document.createElement("treerow");
cell = document.createElement("treecell");
item = document.createElement("treeitem");
row = document.createElement("treerow");
cell = document.createElement("treecell");
cell.setAttribute('class', "treecell-iconic");
cell.setAttribute("label", attachment.displayName);
cell.setAttribute("label", attachment.displayName);
cell.setAttribute("tooltip", "attachmentTreeTooltip");
item.setAttribute("commandSuffix", generateCommandSuffixForAttachment(attachment)); // set the command suffix on the tree item...
setApplicationIconForAttachment(attachment, cell);
row.appendChild(cell);
item.appendChild(row);
attachmentList.appendChild(item);
row.appendChild(cell);
item.appendChild(row);
attachmentList.appendChild(item);
} // for each attachment
gBuildAttachmentsForCurrentMsg = true;
}
@ -832,6 +833,15 @@ function displayAttachmentsForCollapsedView()
}
}
// Public method called to generate a tooltip over an attachment
function FillInAttachmentTooltip(cellNode)
{
var attachmentName = cellNode.getAttribute("label");
var textNode = document.getElementById("attachmentTreeTooltipText");
textNode.setAttribute('value', attachmentName);
return true;
}
// Public method called when we create the attachments file menu
function FillAttachmentListPopup(popup)
{

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

@ -36,8 +36,6 @@ Rights Reserved.
oncommand="handleAttachmentSelection('openAttachment');"/>
<menuitem id="context-saveAttachment" label="&saveAsAttachmentCmd.label;" accesskey="&saveAsAttachmentCmd.accesskey;"
oncommand="handleAttachmentSelection('saveAttachment');"/>
<menuitem id="context-printAttachment" disabled="true" label="&printAttachmentCmd.label;" accesskey="&printAttachmentCmd.accesskey;"
oncommand="handleAttachmentSelection('printAttachment');"/>
<menuseparator/>
<menuitem id="context-saveAllAttachments" oncommand="SaveAllAttachments();" label="&saveAllAttachmentsCmd.label;" accesskey="&saveAllAttachmentsCmd.accesskey;"/>
</popup>
@ -47,6 +45,10 @@ Rights Reserved.
<menuitem label="&saveAllAttachmentsCmd.label;" oncommand="SaveAllAttachments();"/>
</popup>
<popup id="attachmentTreeTooltip" class="tooltip" oncreate="return FillInAttachmentTooltip(document.tooltipNode);" >
<text id="attachmentTreeTooltipText"/>
</popup>
<box id="msgHeaderView" persist="state">
<grid id="collapsedHeaderView" class="header-part1" flex="1" collapsed="true">
<columns>