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:
parent
3afc1d8e94
commit
e4a235e01b
@ -27,7 +27,6 @@ TimWolla.WCF ?= {}
|
|||||||
new WCF.PeriodicalExecuter $.proxy(@getMessages, this), @config.reloadTime * 1000
|
new WCF.PeriodicalExecuter $.proxy(@getMessages, this), @config.reloadTime * 1000
|
||||||
@getMessages()
|
@getMessages()
|
||||||
|
|
||||||
$('#chatInput').focus()
|
|
||||||
console.log '[TimWolla.WCF.Chat] Finished initializing'
|
console.log '[TimWolla.WCF.Chat] Finished initializing'
|
||||||
###
|
###
|
||||||
# Binds all the events needed for Tims Chat.
|
# Binds all the events needed for Tims Chat.
|
||||||
|
@ -199,7 +199,7 @@
|
|||||||
{@$message->jsonify()}
|
{@$message->jsonify()}
|
||||||
{/implode}
|
{/implode}
|
||||||
]);
|
]);
|
||||||
$('#chatInput').enable().jCounter();
|
$('#chatInput').enable().jCounter().focus();
|
||||||
$('#chatControls .copyright').click(function (event) {
|
$('#chatControls .copyright').click(function (event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
if ($.wcfIsset('chatCopyrightDialog')) return WCF.showDialog('chatCopyrightDialog', true, { title: 'Tims Chat{if CHAT_SHOW_VERSION} {$chatVersion}{/if}' });
|
if ($.wcfIsset('chatCopyrightDialog')) return WCF.showDialog('chatCopyrightDialog', true, { title: 'Tims Chat{if CHAT_SHOW_VERSION} {$chatVersion}{/if}' });
|
||||||
|
Loading…
Reference in New Issue
Block a user