bug 463255 - Display website for feed message in headers, step 3: add context menu with "copy link location", r=IanN sr=Neil

This commit is contained in:
Robert Kaiser 2008-11-09 14:18:09 +01:00
Родитель 8ea10e6b2b
Коммит c7ebbfce21
5 изменённых файлов: 24 добавлений и 0 удалений

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

@ -120,6 +120,8 @@
<popup id="attachmentListContext"/>
<popup id="copyUrlPopup"/>
<toolbox id="mail-toolbox">
<menubar id="mail-menubar"/>
</toolbox>

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

@ -128,6 +128,8 @@
<popup id="attachmentListContext"/>
<tooltip id="attachmentListTooltip"/>
<popup id="copyUrlPopup"/>
<popup id="messageIdContext"/>
<popup id="emailAddressPopup"/>

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

@ -1568,6 +1568,20 @@ function ClearEditMessageButton()
editBox.collapsed = true;
}
// CopyWebsiteAddress takes the website address title button, extracts
// the website address we stored in there and copies it to the clipboard
function CopyWebsiteAddress(websiteAddressNode)
{
if (websiteAddressNode)
{
var websiteAddress = websiteAddressNode.getAttribute("value");
var contractid = "@mozilla.org/widget/clipboardhelper;1";
var iid = Components.interfaces.nsIClipboardHelper;
var clipboard = Components.classes[contractid].getService(iid);
clipboard.copyString(websiteAddress);
}
}
var attachmentAreaDNDObserver = {
onDragStart: function (aEvent, aAttachmentData, aDragAction)

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

@ -126,6 +126,10 @@
accesskey="&deleteAllAttachmentsCmd.accesskey;" oncommand="HandleMultipleAttachments('deleteAttachment', currentAttachments);" />
</popup>
<popup id="copyUrlPopup">
<menuitem label="&copyLinkCmd.label;" accesskey="&copyLinkCmd.accesskey;" oncommand="CopyWebsiteAddress(document.popupNode)"/>
</popup>
<hbox id="msgHeaderView" keywordrelated="true" originalclass="none" persist="state">
<grid id="collapsedHeaderView" class="header-part1" keywordrelated="true" originalclass="header-part1" flex="1" collapsed="true">

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

@ -46,6 +46,8 @@
<!ENTITY CreateFilterFrom.accesskey "F">
<!ENTITY BlockAddress.label "Block Address">
<!ENTITY BlockAddress.accesskey "A">
<!ENTITY copyLinkCmd.label "Copy Link Location">
<!ENTITY copyLinkCmd.accesskey "C">
<!ENTITY CopyMessageId.label "Copy Message-ID">
<!ENTITY OpenMessageForMsgId.label "Open Message For ID">
<!ENTITY OpenBrowserWithMsgId.label "Open Browser With Message-ID">