Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Fix bug with chat and bottom toolbar.

foc9aebf6c1d66
diff --git a/chat.js b/chat.js
index 505c8a47f7..a769b7bac1 100644
--- a/chat.js
+++ b/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') {
+ $('#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();
- }
};
/**