diff --git a/file/js/be.bastelstu.Chat.litcoffee b/file/js/be.bastelstu.Chat.litcoffee
index 16c4f6c..41a610e 100644
--- a/file/js/be.bastelstu.Chat.litcoffee
+++ b/file/js/be.bastelstu.Chat.litcoffee
@@ -111,8 +111,9 @@ Initialize `nodePush`
@initPush()
-Finished!
+Finished! Enable the input now.
+ $('#timsChatInput').enable().jCounter().focus();
console.log 'Finished initializing - Shields at 104 percent'
**autocomplete(firstChars, offset = @autocompleteOffset)**
@@ -527,7 +528,6 @@ Build HTML of new user and append it.
menu.append $ "
#{WCF.Language.get('chat.general.query')}"
menu.append $ "#{WCF.Language.get('chat.general.kick')}"
menu.append $ "#{WCF.Language.get('chat.general.ban')}"
- # TODO: SID and co
menu.append $ """#{WCF.Language.get('chat.general.profile')}"""
@events.userMenu.fire user, menu
li.append menu
@@ -662,8 +662,12 @@ Submits the message.
text = $('#timsChatInput').val()
# call submit event
- # TODO: Fix this
- # text = @events.submit.fire text
+ text = do (text) =>
+ obj =
+ text: text
+ @events.submit.fire obj
+
+ obj.text
$('#timsChatInput').val('').focus().keyup()
diff --git a/template/chat.tpl b/template/chat.tpl
index 930f090..bcec38b 100644
--- a/template/chat.tpl
+++ b/template/chat.tpl
@@ -43,9 +43,6 @@
{implode from=$newestMessages item='message'}{@$message->jsonify()}{/implode}
]);
- // enable user-interface
- $('#timsChatInput').enable().jCounter().focus();
-
$('#timsChatCopyright').click(function (event) {
event.preventDefault();
if (!$.wcfIsset('timsChatCopyrightDialog')) $('').appendTo('body');