mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Use .default for hot-status
Thanks @Luzifr
This commit is contained in:
parent
a8ae61b4e1
commit
d3c2cc5a10
@ -139,7 +139,7 @@ consoleMock ?=
|
||||
|
||||
# Immediatly scroll down when activating autoscroll
|
||||
$('#timsChatAutoscroll').click (event) ->
|
||||
$(this).removeClass('hot')
|
||||
$(this).parent().removeClass('default')
|
||||
if $(this).data 'status'
|
||||
$('.timsChatMessageContainer').scrollTop $('.timsChatMessageContainer ul').height()
|
||||
@oldScrollTop = $('.timsChatMessageContainer').scrollTop()
|
||||
@ -248,7 +248,7 @@ consoleMock ?=
|
||||
if $('.timsChatMessageContainer').scrollTop() < @oldScrollTop
|
||||
if $('#timsChatAutoscroll').data('status') is 1
|
||||
$('#timsChatAutoscroll').click()
|
||||
$('#timsChatAutoscroll').addClass('hot').fadeOut('slow').fadeIn('slow')
|
||||
$('#timsChatAutoscroll').parent().addClass('default').fadeOut('slow').fadeIn('slow')
|
||||
|
||||
# Insert the messages
|
||||
for message in messages
|
||||
|
Loading…
Reference in New Issue
Block a user