From bc614c44cac721704183435b9dc8970bc5edd25a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 5 Feb 2012 20:36:11 +0100 Subject: [PATCH] Fixed updating of topic --- file/js/TimWolla.WCF.Chat.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/file/js/TimWolla.WCF.Chat.coffee b/file/js/TimWolla.WCF.Chat.coffee index b14f44f..d8a2b24 100644 --- a/file/js/TimWolla.WCF.Chat.coffee +++ b/file/js/TimWolla.WCF.Chat.coffee @@ -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