mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
fixing bug 74021 - Stand alone window Close File->Close menu is gray out
r=blake ross sr=sspitzer
This commit is contained in:
parent
7e44a669bf
commit
59a439e176
@ -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();
|
||||
|
@ -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"/>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user