Bug 1260035 - Disable text encoding menu when no message is displayed r=Ratty a=Ratty for CLOSED TREE a=Ratty for comm-aurora comm-beta comm-release comm-esr45
authorFrank-Rainer Grahl <frgrahl@gmx.net>
Tue, 29 Mar 2016 02:18:35 +0800
changeset 24670 4a19fd3933c67936dba939a49ad0a867804da7c7
parent 24669 9652242acdf2679bcfe2c2023f0c13a1bbf20aee
child 24671 4d3f54801f4fd954b32fe1fe2aa75f0435bbc914
push id23
push userphilip.chee@gmail.com
push dateWed, 13 Apr 2016 22:20:43 +0000
treeherdercomm-esr45@4a19fd3933c6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersRatty, Ratty, Ratty
bugs1260035
Bug 1260035 - Disable text encoding menu when no message is displayed r=Ratty a=Ratty for CLOSED TREE a=Ratty for comm-aurora comm-beta comm-release comm-esr45
suite/mailnews/mailWindowOverlay.js
--- a/suite/mailnews/mailWindowOverlay.js
+++ b/suite/mailnews/mailWindowOverlay.js
@@ -152,17 +152,17 @@ function view_init()
     view_menuitem.setAttribute("disabled", gAccountCentralLoaded);
 
   var threads_menuitem = document.getElementById("viewMessagesMenu");
   if (threads_menuitem)
     threads_menuitem.setAttribute("disabled", gAccountCentralLoaded);
 
   var charset_menuitem = document.getElementById("charsetMenu");
   if (charset_menuitem)
-    charset_menuitem.setAttribute("disabled", !msgWindow.mailCharacterSet);
+    charset_menuitem.setAttribute("disabled", !gMessageDisplay.displayedMessage);
 
   // Initialize the Message Body menuitem
   var isFeed = gFolderDisplay.selectedMessageIsFeed;
   document.getElementById('viewBodyMenu').hidden = isFeed;
 
   // Initialize the Show Feed Summary menu
   var viewFeedSummary = document.getElementById('viewFeedSummary');
   var winType = document.documentElement.getAttribute('windowtype');