Bug 926961 - The Work offline toggle menu item in the new app menu shows the real state of the offline mode. r=mkmelin
authorSuyash Agarwal <syshagarwal@gmail.com>
Wed, 30 Oct 2013 08:46:27 -0400
changeset 16849 48dd85f8ce1bfd005ed480351a1e0a94ac06a485
parent 16848 4f902dd8fa8dbda53279bd09d0248068b693b430
child 16850 25b79fb93d646ece57854e21bfd48c54868126b6
push id1074
push userbugzilla@standard8.plus.com
push dateMon, 03 Feb 2014 22:47:23 +0000
treeherdercomm-beta@6b791b5369ed [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkmelin
bugs926961
Bug 926961 - The Work offline toggle menu item in the new app menu shows the real state of the offline mode. r=mkmelin
mail/base/content/mail-offline.js
--- a/mail/base/content/mail-offline.js
+++ b/mail/base/content/mail-offline.js
@@ -199,16 +199,17 @@ var MailOfflineMgr = {
 
   /** 
    * Private helper method to update the state of the Offline menu item
    * and the offline status bar indicator
    */
   updateOfflineUI: function(aIsOffline)
   {
     document.getElementById('goOfflineMenuItem').setAttribute("checked", aIsOffline);
+    document.getElementById('appmenu_goOffline').setAttribute("checked", aIsOffline);
     var statusBarPanel = document.getElementById('offline-status');
     if (aIsOffline)
     {
       statusBarPanel.setAttribute("offline", "true");
       statusBarPanel.setAttribute("tooltiptext", this.offlineBundle.getString("offlineTooltip"));
     }
     else
     {