Bug 1508210 - wire up cmd_undo and cmd_redo commands again. r=jorgk
authoraceman <acelists@atlas.sk>
Fri, 30 Nov 2018 14:38:00 +0100
changeset 33829 0663b3a4a657e610ff10caddeaa04bd90b39767e
parent 33828 debcebde19f182adc5ab07626e582b47c52d313f
child 33830 6e49a3ec00cd10eb0bddad465f5f6a7254e8bc6c
push id388
push userclokep@gmail.com
push dateMon, 28 Jan 2019 20:54:56 +0000
reviewersjorgk
bugs1508210
Bug 1508210 - wire up cmd_undo and cmd_redo commands again. r=jorgk
mail/base/content/mainCommandSet.inc
--- a/mail/base/content/mainCommandSet.inc
+++ b/mail/base/content/mainCommandSet.inc
@@ -84,22 +84,26 @@
   </commandset>
 
   <commandset id="mailEditMenuItems"
               commandupdater="true"
               events="create-menu-edit"
               oncommandupdate="goUpdateMailMenuItems(this)">
 
     <command id="cmd_undo"
+           oncommand="goDoCommand('cmd_undo')"
+           disabled="true"
            valueDeleteMsg="&undoDeleteMsgCmd.label;"
            valueMoveMsg="&undoMoveMsgCmd.label;"
            valueCopyMsg="&undoCopyMsgCmd.label;"
            valueUnmarkAllMsgs="&undoMarkAllCmd.label;"
            valueDefault="&undoDefaultCmd.label;"/>
     <command id="cmd_redo"
+           oncommand="goDoCommand('cmd_redo')"
+           disabled="true"
            valueDeleteMsg="&redoDeleteMsgCmd.label;"
            valueMoveMsg="&redoMoveMsgCmd.label;"
            valueCopyMsg="&redoCopyMsgCmd.label;"
            valueUnmarkAllMsgs="&redoMarkAllCmd.label;"
            valueDefault="&redoDefaultCmd.label;"/>
     <command id="cmd_cut"
            oncommand="goDoCommand('cmd_cut')"
            disabled="true"/>