Fix for 45059. r=mscott. Character encoding menus didn't work in the standalone message window.

This commit is contained in:
putterman%netscape.com 2000-08-08 04:46:42 +00:00
parent 52d1151fbc
commit b493f66f72
3 changed files with 17 additions and 2 deletions

View File

@ -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');

View File

@ -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();

View File

@ -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"/>