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
|
||||
if data.topic is ''
|
||||
return if $('#topic').text().trim() is ''
|
||||
return if $('#timsChatTopic').text().trim() is ''
|
||||
|
||||
$('#topic').wcfBlindOut 'vertical', () ->
|
||||
$('#timsChatTopic').wcfBlindOut 'vertical', () ->
|
||||
$(@).text ''
|
||||
else
|
||||
$('#topic').text data.topic
|
||||
$('#topic').wcfBlindIn() if $('#topic').text().trim() isnt '' and $('#topic').is(':hidden')
|
||||
$('#timsChatTopic').text data.topic
|
||||
$('#timsChatTopic').wcfBlindIn() if $('#timsChatTopic').text().trim() isnt '' and $('#topic').is(':hidden')
|
||||
|
||||
$('.timsChatMessage').animate('opacity', .8);
|
||||
@handleMessages data.messages
|
||||
|
Loading…
Reference in New Issue
Block a user