diff --git a/file/js/be.bastelstu.Chat.litcoffee b/file/js/be.bastelstu.Chat.litcoffee index d983f44..9ad7bbd 100644 --- a/file/js/be.bastelstu.Chat.litcoffee +++ b/file/js/be.bastelstu.Chat.litcoffee @@ -190,7 +190,10 @@ and afterwards sent to the server by an AJAX request. do event.preventDefault text = do $('#timsChatInput').val().trim - $('#timsChatInput').val('').focus().change() + input = $ '#timsChatInput' + input.val '' + do input.focus + do input.change return false if text.length is 0