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
authorFrank-Rainer Grahl <frgrahl@gmx.net>
Tue, 29 Mar 2016 02:18:35 +0800
changeset 31270 72ba6165392441fb874a808beb8783108d9476d1
parent 31269 128d56346e00918929269c26050d4ddf26a82ef0
child 31271 8693b6d72a352027e4433b00509e64d52cd8102f
push id1
push userclokep@gmail.com
push dateMon, 07 May 2018 22:45:56 +0000
treeherdercomm-esr60@57eacde5ef40 [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
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');