From b633f05452c928a581b80917e950267aad9225fc Mon Sep 17 00:00:00 2001 From: Maximilian Mader Date: Mon, 28 Apr 2014 13:59:08 +0200 Subject: [PATCH] Change fired event in insertText from 'keyup' to 'change' jCounter listens to this event and updates the counter if this event is fired --- file/js/be.bastelstu.Chat.litcoffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/file/js/be.bastelstu.Chat.litcoffee b/file/js/be.bastelstu.Chat.litcoffee index 27d5ea5..e11e9bc 100644 --- a/file/js/be.bastelstu.Chat.litcoffee +++ b/file/js/be.bastelstu.Chat.litcoffee @@ -768,8 +768,8 @@ the existing text. If `options.submit` is true the message will be sent to the s text = $('#timsChatInput').val() + text if options.append $('#timsChatInput').val text - do $('#timsChatInput').keyup - + $('#timsChatInput').trigger 'change' + if options.submit do $('#timsChatForm').submit else