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

Fixing issue with scroll disabler

This commit is contained in:
Tim Düsterhus 2012-01-29 15:23:21 +01:00
parent 5684af0b1f
commit 50ec5ad93f

View File

@ -116,6 +116,8 @@ TimWolla.WCF ?= {}
$('#chatClear').click (event) -> $('#chatClear').click (event) ->
event.preventDefault() event.preventDefault()
$('.chatMessage').remove() $('.chatMessage').remove()
@oldScrollTop = $('.chatMessageContainer').scrollTop()
$('.chatMessageContainer').scrollTop $('.chatMessageContainer ul').height()
$('#chatInput').focus() $('#chatInput').focus()
# Toggle Buttons # Toggle Buttons
@ -343,7 +345,7 @@ TimWolla.WCF ?= {}
notification.show() notification.show()
setTimeout(() -> setTimeout(() ->
notification.cancel() notification.cancel()
, 5000) , 5e3)
### ###
# Refreshes the room-list. # Refreshes the room-list.
### ###