fixing bug 74021 - Stand alone window Close File->Close menu is gray out

r=blake ross
sr=sspitzer
This commit is contained in:
ssu%netscape.com 2001-04-18 04:37:01 +00:00
parent 7e44a669bf
commit 59a439e176
3 changed files with 25 additions and 21 deletions

View File

@ -182,6 +182,7 @@ var DefaultController =
switch ( command )
{
case "cmd_close":
case "cmd_reply":
case "button_reply":
case "cmd_replySender":
@ -404,6 +405,9 @@ var DefaultController =
switch ( command )
{
case "cmd_close":
CloseMailWindow();
break;
case "button_getNewMessages":
case "cmd_getNewMessages":
MsgGetMessage();

View File

@ -55,7 +55,7 @@ Rights Reserved.
oncommandupdate="goUpdateMailMenuItems(this)">
<command id="cmd_getNewMessages" oncommand="goDoCommand('cmd_getNewMessages')" disabled="true"/>
<command id="cmd_close" oncommand="CloseMailWindow()"/>
<command id="cmd_close" oncommand="goDoCommand('cmd_close')"/>
<command id="cmd_open" oncommand="goDoCommand('cmd_open')"/>
<command id="cmd_file" disabled="true"/>

View File

@ -403,6 +403,7 @@ var MessageWindowController =
switch ( command )
{
case "cmd_close":
case "cmd_reply":
case "button_reply":
case "cmd_replySender":
@ -462,25 +463,22 @@ var MessageWindowController =
switch ( command )
{
case "cmd_delete":
if ( command == "cmd_delete")
{
if (isNewsURI(gCurrentMessageUri))
{
goSetMenuValue(command, 'valueNewsMessage');
goSetAccessKey(command, 'valueNewsMessageAccessKey');
}
else
{
goSetMenuValue(command, 'valueMessage');
goSetAccessKey(command, 'valueMessageAccessKey');
}
}
if (isNewsURI(gCurrentMessageUri))
{
goSetMenuValue(command, 'valueNewsMessage');
goSetAccessKey(command, 'valueNewsMessageAccessKey');
}
else
{
goSetMenuValue(command, 'valueMessage');
goSetAccessKey(command, 'valueMessageAccessKey');
}
if (gDBView)
{
gDBView.getCommandStatus(nsMsgViewCommandType.deleteMsg, enabled, checkStatus);
return enabled.value;
}
if (gDBView)
{
gDBView.getCommandStatus(nsMsgViewCommandType.deleteMsg, enabled, checkStatus);
return enabled.value;
}
case "cmd_reply":
case "button_reply":
case "cmd_replySender":
@ -519,8 +517,7 @@ var MessageWindowController =
return IsGetNextNMessagesEnabled();
case "cmd_synchronizeOffline":
case "cmd_toggleWorkOffline":
return true;
case "cmd_close":
case "cmd_nextMsg":
case "button_next":
case "cmd_nextUnreadMsg":
@ -543,6 +540,9 @@ var MessageWindowController =
switch ( command )
{
case "cmd_close":
CloseMailWindow();
break;
case "cmd_getNewMessages":
MsgGetMessage();
break;