1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-21 21:30:08 +00:00

Fix autoscroll when switching channels

This commit is contained in:
Tim Düsterhus 2014-03-17 18:42:30 +01:00
parent 4f4ececb6f
commit dcdaa54ab7

View File

@ -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