From dcdaa54ab7f75302da2ed7203019545b5425abaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 17 Mar 2014 18:42:30 +0100 Subject: [PATCH] Fix autoscroll when switching channels --- file/js/be.bastelstu.Chat.litcoffee | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/file/js/be.bastelstu.Chat.litcoffee b/file/js/be.bastelstu.Chat.litcoffee index 56da2bc..d5c94d2 100644 --- a/file/js/be.bastelstu.Chat.litcoffee +++ b/file/js/be.bastelstu.Chat.litcoffee @@ -978,9 +978,7 @@ Open private channel $("#timsChatMessageContainer#{userID}").addClass 'active' $("#timsChatMessageTabMenuAnchor#{userID}").parent().removeClass 'notify' $("#timsChatMessageContainer#{userID}").removeClass 'notify' - if $('#timsChatAutoscroll').data('status') - do $('#timsChatAutoscroll').click - scrollUpNotifications = on + $("#timsChatMessageContainer#{userID}").trigger 'scroll' $('#timsChatMessageTabMenu').wcfTabs 'select', $("#timsChatMessageTabMenuAnchor#{userID}").parent().index() do WCF.DOMNodeInsertedHandler.execute