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

Focus in template.

It was broken due to the disabled input
This commit is contained in:
Tim Düsterhus 2012-01-16 14:35:57 +01:00
parent 3afc1d8e94
commit e4a235e01b
2 changed files with 1 additions and 2 deletions

View File

@ -27,7 +27,6 @@ TimWolla.WCF ?= {}
new WCF.PeriodicalExecuter $.proxy(@getMessages, this), @config.reloadTime * 1000
@getMessages()
$('#chatInput').focus()
console.log '[TimWolla.WCF.Chat] Finished initializing'
###
# Binds all the events needed for Tims Chat.

View File

@ -199,7 +199,7 @@
{@$message->jsonify()}
{/implode}
]);
$('#chatInput').enable().jCounter();
$('#chatInput').enable().jCounter().focus();
$('#chatControls .copyright').click(function (event) {
event.preventDefault();
if ($.wcfIsset('chatCopyrightDialog')) return WCF.showDialog('chatCopyrightDialog', true, { title: 'Tims Chat{if CHAT_SHOW_VERSION} {$chatVersion}{/if}' });