From 708df74673f271b22f6a29f992d7a7e9ab61f847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 2 May 2012 20:53:32 +0200 Subject: [PATCH] =?UTF-8?q?Fixed=20=E2=80=9Eactive=E2=80=9C-marking=20of?= =?UTF-8?q?=20scroll=20button.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- file/js/be.bastelstu.WCF.Chat.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/file/js/be.bastelstu.WCF.Chat.coffee b/file/js/be.bastelstu.WCF.Chat.coffee index 1234831..014426d 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('default') + $(this).parent().removeClass('active') if $(this).data 'status' $('.timsChatMessageContainer').scrollTop $('.timsChatMessageContainer ul').height() @oldScrollTop = $('.timsChatMessageContainer').scrollTop() @@ -298,7 +298,7 @@ window.console ?= if $('.timsChatMessageContainer').scrollTop() < @oldScrollTop if $('#timsChatAutoscroll').data('status') is 1 $('#timsChatAutoscroll').click() - $('#timsChatAutoscroll').parent().addClass('default').fadeOut('slow').fadeIn('slow') + $('#timsChatAutoscroll').parent().addClass('active').fadeOut('slow').fadeIn('slow') # Insert the messages for message in messages