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