Bug 832679 - Let 'Folder Pane' and 'Message Pane' in AppMenu work correctly. r=mconley,a=Standard8
authorRichard Marti <richard.marti@gmail.com>
Sun, 20 Jan 2013 09:26:28 +0100
changeset 13641 07c9411e48ef6c458c7d71fb2f4a186165ebb10b
parent 13640 71b75750c19c422d84b04594319c97474743505d
child 13642 6204a493bd2eed3cbcf827acf206371d8ec03dfe
push id43
push userbugzilla@standard8.plus.com
push dateTue, 05 Mar 2013 14:55:36 +0000
reviewersmconley, Standard8
bugs832679
Bug 832679 - Let 'Folder Pane' and 'Message Pane' in AppMenu work correctly. r=mconley,a=Standard8
mail/base/content/mailWindowOverlay.js
--- a/mail/base/content/mailWindowOverlay.js
+++ b/mail/base/content/mailWindowOverlay.js
@@ -168,21 +168,33 @@ function view_init()
   let accountCentralDisplayed = gFolderDisplay.isAccountCentralDisplayed;
   let messagePaneMenuItem = document.getElementById("menu_showMessage");
   if (!messagePaneMenuItem.hidden) { // Hidden in the standalone msg window.
     messagePaneMenuItem.setAttribute("checked",
       accountCentralDisplayed ? false : gMessageDisplay.visible);
     messagePaneMenuItem.disabled = accountCentralDisplayed;
   }
 
+  let messagePaneAppMenuItem = document.getElementById("appmenu_showMessage");
+  if (!messagePaneAppMenuItem.hidden) { // Hidden in the standalone msg window.
+    messagePaneAppMenuItem.setAttribute("checked",
+      accountCentralDisplayed ? false : gMessageDisplay.visible);
+    messagePaneAppMenuItem.disabled = accountCentralDisplayed;
+  }
+
   let folderPaneMenuItem = document.getElementById("menu_showFolderPane");
   if (!folderPaneMenuItem.hidden) { // Hidden in the standalone msg window.
     folderPaneMenuItem.setAttribute("checked", gFolderDisplay.folderPaneVisible);
   }
 
+  let folderPaneAppMenuItem = document.getElementById("appmenu_showFolderPane");
+  if (!folderPaneAppMenuItem.hidden) { // Hidden in the standalone msg window.
+    folderPaneAppMenuItem.setAttribute("checked", gFolderDisplay.folderPaneVisible);
+  }
+
   // Disable some menus if account manager is showing
   document.getElementById("viewSortMenu").disabled = accountCentralDisplayed;
 
   let appmenuViewSort = document.getElementById("appmenu_viewSortMenu");
   if (appmenuViewSort)
     appmenuViewSort.disabled = accountCentralDisplayed;
 
   document.getElementById("viewMessageViewMenu").disabled = accountCentralDisplayed;