1
0
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:
Tim Düsterhus 2012-02-05 20:36:11 +01:00
parent 072f6f2c83
commit bc614c44ca

View File

@ -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