Fix bug with chat and bottom toolbar.

This commit is contained in:
fo 2014-09-05 16:08:10 +03:00
parent e1f61ad1a5
commit c9aebf6c1d
1 changed files with 10 additions and 7 deletions

17
chat.js
View File

@ -252,15 +252,18 @@ var Chat = (function (my) {
$('#chatspace').show("slide", { direction: "right", $('#chatspace').show("slide", { direction: "right",
queue: false, 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') {
$('#nickinput').focus();
} else {
$('#usermsg').focus();
}
}
});
} }
// Request the focus in the nickname field or the chat input field.
if ($('#nickname').css('visibility') === 'visible')
$('#nickinput').focus();
else {
$('#usermsg').focus();
}
}; };
/** /**