mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Fixed updating of topic
This commit is contained in:
parent
072f6f2c83
commit
bc614c44ca
@ -172,13 +172,13 @@ consoleMock ?=
|
|||||||
|
|
||||||
# Set new topic
|
# Set new topic
|
||||||
if data.topic is ''
|
if data.topic is ''
|
||||||
return if $('#topic').text().trim() is ''
|
return if $('#timsChatTopic').text().trim() is ''
|
||||||
|
|
||||||
$('#topic').wcfBlindOut 'vertical', () ->
|
$('#timsChatTopic').wcfBlindOut 'vertical', () ->
|
||||||
$(@).text ''
|
$(@).text ''
|
||||||
else
|
else
|
||||||
$('#topic').text data.topic
|
$('#timsChatTopic').text data.topic
|
||||||
$('#topic').wcfBlindIn() if $('#topic').text().trim() isnt '' and $('#topic').is(':hidden')
|
$('#timsChatTopic').wcfBlindIn() if $('#timsChatTopic').text().trim() isnt '' and $('#topic').is(':hidden')
|
||||||
|
|
||||||
$('.timsChatMessage').animate('opacity', .8);
|
$('.timsChatMessage').animate('opacity', .8);
|
||||||
@handleMessages data.messages
|
@handleMessages data.messages
|
||||||
|
Loading…
Reference in New Issue
Block a user