From c71d19e16a82c6bed3e666b1a1af7739af0b2979 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 24 May 2012 20:36:58 +0200 Subject: [PATCH] Fixed active marking --- file/js/be.bastelstu.WCF.Chat.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/file/js/be.bastelstu.WCF.Chat.coffee b/file/js/be.bastelstu.WCF.Chat.coffee index df8562c..958990c 100644 --- a/file/js/be.bastelstu.WCF.Chat.coffee +++ b/file/js/be.bastelstu.WCF.Chat.coffee @@ -174,7 +174,7 @@ window.console ?= # Immediatly scroll down when activating autoscroll $('#timsChatAutoscroll').click (event) -> - $(this).parent().removeClass('active') + $(this).removeClass 'active' if $(this).data 'status' $('.timsChatMessageContainer').scrollTop $('.timsChatMessageContainer ul').height() @oldScrollTop = $('.timsChatMessageContainer').scrollTop() @@ -298,7 +298,8 @@ window.console ?= if $('.timsChatMessageContainer').scrollTop() < @oldScrollTop if $('#timsChatAutoscroll').data('status') is 1 $('#timsChatAutoscroll').click() - $('#timsChatAutoscroll').parent().addClass('active').fadeOut('slow').fadeIn('slow') + $('#timsChatAutoscroll').addClass 'active' + $('#timsChatAutoscroll').parent().fadeOut('slow').fadeIn 'slow' # Insert the messages for message in messages