Focus text input when opening a conversation
This commit is contained in:
parent
ebc8846fcb
commit
24768712e0
1 changed files with 1 additions and 0 deletions
|
@ -28,6 +28,7 @@
|
|||
new bg.Whisper.ConversationView({
|
||||
model: conversation
|
||||
}).$el.prependTo($('body', document));
|
||||
$('input.send-message', document).focus();
|
||||
} else {
|
||||
$('<div>').text('Error').prependTo($('body', document));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue