From 50ec5ad93fb63a0e84b2d039db22cc9ceecb338c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 29 Jan 2012 15:23:21 +0100 Subject: [PATCH] Fixing issue with scroll disabler --- file/js/TimWolla.WCF.Chat.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/file/js/TimWolla.WCF.Chat.coffee b/file/js/TimWolla.WCF.Chat.coffee index d739f1f..6074ed3 100644 --- a/file/js/TimWolla.WCF.Chat.coffee +++ b/file/js/TimWolla.WCF.Chat.coffee @@ -116,6 +116,8 @@ TimWolla.WCF ?= {} $('#chatClear').click (event) -> event.preventDefault() $('.chatMessage').remove() + @oldScrollTop = $('.chatMessageContainer').scrollTop() + $('.chatMessageContainer').scrollTop $('.chatMessageContainer ul').height() $('#chatInput').focus() # Toggle Buttons @@ -343,7 +345,7 @@ TimWolla.WCF ?= {} notification.show() setTimeout(() -> notification.cancel() - , 5000) + , 5e3) ### # Refreshes the room-list. ###