Skip to content

Commit

Permalink
Fix autoscroll when switching channels
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWolla committed Mar 17, 2014
1 parent 4f4ecec commit dcdaa54
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions file/js/be.bastelstu.Chat.litcoffee
Expand Up @@ -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
Expand Down

0 comments on commit dcdaa54

Please sign in to comment.