From d86daa749641b05ae9bea183d5301c3d076db9a3 Mon Sep 17 00:00:00 2001 From: "scott%scott-macgregor.org" Date: Fri, 1 Sep 2006 06:50:26 +0000 Subject: [PATCH] Bug #350543 --> add command updating for the stand alone message window for move to folder again. sr=bienvenu --- mail/base/content/messageWindow.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mail/base/content/messageWindow.js b/mail/base/content/messageWindow.js index 6d2746c9cfe..c6cc5ef1313 100644 --- a/mail/base/content/messageWindow.js +++ b/mail/base/content/messageWindow.js @@ -815,6 +815,7 @@ var MessageWindowController = case "cmd_settingsOffline": case "cmd_createFilterFromPopup": case "cmd_createFilterFromMenu": + case "cmd_moveToFolderAgain": return true; case "cmd_synchronizeOffline": case "cmd_downloadFlagged": @@ -923,6 +924,8 @@ var MessageWindowController = case "cmd_undo": case "cmd_redo": return SetupUndoRedoCommand(command); + case "cmd_moveToFolderAgain": + return (pref.getCharPref("mail.last_msg_movecopy_target_uri")); case "cmd_applyFilters": case "cmd_runJunkControls": case "cmd_deleteJunk": @@ -984,6 +987,13 @@ var MessageWindowController = case "cmd_editAsNew": MsgEditMessageAsNew(); break; + case "cmd_moveToFolderAgain": + var folderId = pref.getCharPref("mail.last_msg_movecopy_target_uri"); + if (pref.getBoolPref("mail.last_msg_movecopy_was_move")) + MsgMoveMessage(folderId); + else + MsgCopyMessage(folderId); + break; case "cmd_createFilterFromPopup": break;// This does nothing because the createfilter is invoked from the popupnode oncommand. case "cmd_createFilterFromMenu":