From 95712bd01765f831645173363d10381758192f51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sat, 21 Jan 2012 17:12:49 +0100 Subject: [PATCH] Only blindIn if the topic is not there --- file/js/TimWolla.WCF.Chat.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/file/js/TimWolla.WCF.Chat.coffee b/file/js/TimWolla.WCF.Chat.coffee index c955528..fc0d442 100644 --- a/file/js/TimWolla.WCF.Chat.coffee +++ b/file/js/TimWolla.WCF.Chat.coffee @@ -104,7 +104,7 @@ TimWolla.WCF ?= {} $(this).text '' else $('#topic').text data.topic - $('#topic').wcfBlindIn() if $('#topic').text().trim() isnt '' + $('#topic').wcfBlindIn() if $('#topic').text().trim() isnt '' and $('#topic').is(':hidden') $('title').text @titleTemplate.fetch(data) , this) @@ -158,7 +158,7 @@ TimWolla.WCF ?= {} dataType: 'json' type: 'POST' success: $.proxy((data, textStatus, jqXHR) -> - if (!@isActive && $('#chatNotify').data('status') is 1) + if (!@isActive and $('#chatNotify').data('status') is 1) @newMessageCount += data.messages.length if (@newMessageCount > 0) @timeout = setTimeout $.proxy(() ->