Bug 1519481 - Restore Attachments submenu which got lost during overlay removal. r+a=jorgk
authoralta88 <alta88@gmail.com>
Fri, 11 Jan 2019 22:19:58 +0100
changeset 33940 c9e0cf17a0df6ef6fba09e888f6f11135d877319
parent 33939 86a575e521b82f34285c6c6566c9e933d468a010
child 33941 8039ee8e0391270d9bfd6c45571ee6d22ebcb2d0
push id388
push userclokep@gmail.com
push dateMon, 28 Jan 2019 20:54:56 +0000
bugs1519481
Bug 1519481 - Restore Attachments submenu which got lost during overlay removal. r+a=jorgk
mail/base/content/mainNavigationToolbox.inc
mail/base/content/mainPopupSet.inc
--- a/mail/base/content/mainNavigationToolbox.inc
+++ b/mail/base/content/mainNavigationToolbox.inc
@@ -687,17 +687,32 @@
             </menu>
 #ifdef MAIN_WINDOW
             <menuseparator id="messageAfterOpenMsgSeparator"/>
 #endif
             <menu id="msgAttachmentMenu"
                   label="&openAttachmentListCmd.label;"
                   accesskey="&openAttachmentListCmd.accesskey;"
                   disabled="true">
-              <menupopup id="attachmentMenuList" onpopupshowing="FillAttachmentListPopup(this);"/>
+              <menupopup id="attachmentMenuList"
+                         onpopupshowing="FillAttachmentListPopup(event, this);">
+                <menuseparator/>
+                <menuitem label="&openAllAttachmentsCmd.label;"
+                          accesskey="&openAllAttachmentsCmd.accesskey;"
+                          command="cmd_openAllAttachments"/>
+                <menuitem label="&saveAllAttachmentsCmd.label;"
+                          accesskey="&saveAllAttachmentsCmd.accesskey;"
+                          command="cmd_saveAllAttachments"/>
+                <menuitem label="&detachAllAttachmentsCmd.label;"
+                          accesskey="&detachAllAttachmentsCmd.accesskey;"
+                          command="cmd_detachAllAttachments"/>
+                <menuitem label="&deleteAllAttachmentsCmd.label;"
+                          accesskey="&deleteAllAttachmentsCmd.accesskey;"
+                          command="cmd_deleteAllAttachments"/>
+              </menupopup>
             </menu>
             <menuseparator id="messageAfterAttachmentMenuSeparator"/>
             <menu id="tagMenu" label="&tagMenu.label;" accesskey="&tagMenu.accesskey;" command="cmd_tag">
               <menupopup id="tagMenu-tagpopup"
                          onpopupshowing="InitMessageTags(this);">
                 <menuitem id="tagMenu-addNewTag"
                           label="&addNewTag.label;"
                           accesskey="&addNewTag.accesskey;"
--- a/mail/base/content/mainPopupSet.inc
+++ b/mail/base/content/mainPopupSet.inc
@@ -45,17 +45,31 @@
                         label="&newIMContactCmd.label;"
                         command="cmd_addChatBuddy"/>
             </menupopup>
         </splitmenu>
         <menu id="appmenu_msgAttachmentMenu"
               label="&openAttachmentListCmd.label;"
               disabled="true">
           <menupopup id="appmenu_attachmentMenuList"
-                     onpopupshowing="FillAttachmentListPopup(this);"/>
+                     onpopupshowing="FillAttachmentListPopup(event, this);">
+            <menuseparator/>
+            <menuitem label="&openAllAttachmentsCmd.label;"
+                      accesskey="&openAllAttachmentsCmd.accesskey;"
+                      command="cmd_openAllAttachments"/>
+            <menuitem label="&saveAllAttachmentsCmd.label;"
+                      accesskey="&saveAllAttachmentsCmd.accesskey;"
+                      command="cmd_saveAllAttachments"/>
+            <menuitem label="&detachAllAttachmentsCmd.label;"
+                      accesskey="&detachAllAttachmentsCmd.accesskey;"
+                      command="cmd_detachAllAttachments"/>
+            <menuitem label="&deleteAllAttachmentsCmd.label;"
+                      accesskey="&deleteAllAttachmentsCmd.accesskey;"
+                      command="cmd_deleteAllAttachments"/>
+          </menupopup>
         </menu>
         <menuseparator class="appmenu-menuseparator"/>
         <hbox>
           <menuitem id="appmenu-edit-label"
                     label="&appmenuEditMenu.label;"
                     disabled="true"/>
           <toolbarbutton id="appmenu-cut"
                          class="appmenu-edit-button"