forked from mirrors/0ad
Code cleanup. Refs #3420.
Since the window is now closed immediately after disconnect in messages.js, we don't need to close it in menu.js. This was SVN commit r17323.
This commit is contained in:
@@ -210,10 +210,7 @@ function openOptions()
|
||||
function openChat()
|
||||
{
|
||||
if (g_Disconnected)
|
||||
{
|
||||
closeChat();
|
||||
return;
|
||||
}
|
||||
|
||||
updateTeamCheckbox(false);
|
||||
|
||||
@@ -239,10 +236,7 @@ function updateTeamCheckbox(check)
|
||||
function toggleChatWindow(teamChat)
|
||||
{
|
||||
if (g_Disconnected)
|
||||
{
|
||||
closeChat();
|
||||
return;
|
||||
}
|
||||
|
||||
var chatWindow = Engine.GetGUIObjectByName("chatDialogPanel");
|
||||
var chatInput = Engine.GetGUIObjectByName("chatInput");
|
||||
|
||||
Reference in New Issue
Block a user