1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Focus chatInput after inserting text

This commit is contained in:
Tim Düsterhus 2011-12-13 21:44:31 +01:00
parent 0165b0c1ac
commit 452315f5f7

View File

@ -160,6 +160,7 @@ if (typeof TimWolla.WCF == 'undefined') TimWolla.WCF = {};
$('#chatInput').val(text); $('#chatInput').val(text);
if (options.submit) $('#chatForm').submit(); if (options.submit) $('#chatForm').submit();
else $('#chatInput').focus();
}, },
toggleUserMenu: function (target) { toggleUserMenu: function (target) {
liUserID = '#' + target.parent().parent().attr('id'); liUserID = '#' + target.parent().parent().attr('id');