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

Reset oldScrollTop to null when clearing the chat

This commit is contained in:
Tim Düsterhus 2012-02-05 19:19:27 +01:00
parent f82717d839
commit 18b097ff9b

View File

@ -120,7 +120,7 @@ consoleMock ?=
$('#timsChatClear').click (event) -> $('#timsChatClear').click (event) ->
event.preventDefault() event.preventDefault()
$('.timsChatMessage').remove() $('.timsChatMessage').remove()
@oldScrollTop = $('.timsChatMessageContainer').scrollTop() @oldScrollTop = null
$('.timsChatMessageContainer').scrollTop $('.timsChatMessageContainer ul').height() $('.timsChatMessageContainer').scrollTop $('.timsChatMessageContainer ul').height()
$('#timsChatInput').focus() $('#timsChatInput').focus()