mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-24 21:58:06 +00:00
Fix for 45059. r=mscott. Character encoding menus didn't work in the standalone message window.
This commit is contained in:
parent
52d1151fbc
commit
b493f66f72
@ -21,8 +21,13 @@
|
||||
function view_init()
|
||||
{
|
||||
var message_menuitem=document.getElementById('menu_showMessage');
|
||||
if (message_menuitem){
|
||||
message_menuitem.setAttribute('checked',!IsThreadAndMessagePaneSplitterCollapsed());
|
||||
|
||||
if (message_menuitem)
|
||||
{
|
||||
var message_menuitem_hidden = message_menuitem.getAttribute("hidden");
|
||||
if(message_menuitem_hidden != "true"){
|
||||
message_menuitem.setAttribute('checked',!IsThreadAndMessagePaneSplitterCollapsed());
|
||||
}
|
||||
}
|
||||
var threadColumn = document.getElementById('ThreadColumnHeader');
|
||||
var thread_menuitem=document.getElementById('menu_showThreads');
|
||||
|
@ -32,6 +32,7 @@ var gCurrentMessageIsDeleted = false;
|
||||
|
||||
function OnLoadMessageWindow()
|
||||
{
|
||||
HideMenus();
|
||||
CreateMailWindowGlobals();
|
||||
CreateMessageWindowGlobals();
|
||||
verifyAccounts();
|
||||
@ -68,6 +69,14 @@ function OnLoadMessageWindow()
|
||||
|
||||
}
|
||||
|
||||
function HideMenus()
|
||||
{
|
||||
var message_menuitem=document.getElementById('menu_showMessage');
|
||||
if(message_menuitem)
|
||||
message_menuitem.setAttribute("hidden", "true");
|
||||
|
||||
}
|
||||
|
||||
function OnUnloadMessageWindow()
|
||||
{
|
||||
OnMailWindowUnload();
|
||||
|
@ -46,6 +46,7 @@ Rights Reserved.
|
||||
|
||||
|
||||
<script src="chrome://global/content/strres.js"/>
|
||||
<script src="chrome://messenger/content/shareglue.js"/>
|
||||
<script src="chrome://messenger/content/commandglue.js"/>
|
||||
<script src="chrome://messenger/content/mailWindow.js"/>
|
||||
<script src="chrome://messenger/content/messageWindow.js"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user