doc added

This commit is contained in:
Konstantyn Pahsura 2016-11-16 14:09:22 +02:00
parent a67087b6de
commit 00aee89709
1 changed files with 6 additions and 0 deletions

View File

@ -157,6 +157,12 @@ function resizeChatConversation() {
chat.height(window.innerHeight - 15 - msgareaHeight);
}
/**
* Focus input after 400 ms
* Found input by id
*
* @param id {string} input id
*/
function deferredFocus(id){
setTimeout(function (){
$(`#${id}`).focus();