mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Fixed active marking
This commit is contained in:
parent
2a62bc07ed
commit
c71d19e16a
@ -174,7 +174,7 @@ window.console ?=
|
||||
|
||||
# Immediatly scroll down when activating autoscroll
|
||||
$('#timsChatAutoscroll').click (event) ->
|
||||
$(this).parent().removeClass('active')
|
||||
$(this).removeClass 'active'
|
||||
if $(this).data 'status'
|
||||
$('.timsChatMessageContainer').scrollTop $('.timsChatMessageContainer ul').height()
|
||||
@oldScrollTop = $('.timsChatMessageContainer').scrollTop()
|
||||
@ -298,7 +298,8 @@ window.console ?=
|
||||
if $('.timsChatMessageContainer').scrollTop() < @oldScrollTop
|
||||
if $('#timsChatAutoscroll').data('status') is 1
|
||||
$('#timsChatAutoscroll').click()
|
||||
$('#timsChatAutoscroll').parent().addClass('active').fadeOut('slow').fadeIn('slow')
|
||||
$('#timsChatAutoscroll').addClass 'active'
|
||||
$('#timsChatAutoscroll').parent().fadeOut('slow').fadeIn 'slow'
|
||||
|
||||
# Insert the messages
|
||||
for message in messages
|
||||
|
Loading…
Reference in New Issue
Block a user