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:
Родитель
8ea10e6b2b
Коммит
c7ebbfce21
|
@ -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="©LinkCmd.label;" accesskey="©LinkCmd.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">
|
||||
|
|
Загрузка…
Ссылка в новой задаче