Merge pull request #120 from fouksf/chat-bug
Fix bug with chat and bottom toolbar.
This commit is contained in:
commit
37d28b2d2d
13
chat.js
13
chat.js
|
@ -252,15 +252,18 @@ var Chat = (function (my) {
|
|||
|
||||
$('#chatspace').show("slide", { direction: "right",
|
||||
queue: false,
|
||||
duration: 500});
|
||||
}
|
||||
|
||||
duration: 500,
|
||||
complete: function () {
|
||||
// Request the focus in the nickname field or the chat input field.
|
||||
if ($('#nickname').css('visibility') === 'visible')
|
||||
if ($('#nickname').css('visibility') === 'visible') {
|
||||
$('#nickinput').focus();
|
||||
else {
|
||||
} else {
|
||||
$('#usermsg').focus();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue