From 3ec195d10e1dbd6997c70d2f110e1196bc019abf Mon Sep 17 00:00:00 2001 From: max-m Date: Sun, 5 Feb 2012 21:35:56 +0100 Subject: [PATCH] Fixes animation of old messages due to channelchange --- file/js/TimWolla.WCF.Chat.coffee | 2 +- file/style/timwolla.wcf.chat.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/file/js/TimWolla.WCF.Chat.coffee b/file/js/TimWolla.WCF.Chat.coffee index f7fb31b..cfbded1 100644 --- a/file/js/TimWolla.WCF.Chat.coffee +++ b/file/js/TimWolla.WCF.Chat.coffee @@ -180,7 +180,7 @@ consoleMock ?= $('#timsChatTopic').text data.topic $('#timsChatTopic').wcfBlindIn() if $('#timsChatTopic').text().trim() isnt '' and $('#timsChatTopic').is(':hidden') - $('.timsChatMessage').animate('opacity', .8); + $('.timsChatMessage').addClass('unloaded', 800); @handleMessages data.messages document.title = @titleTemplate.fetch data , @) diff --git a/file/style/timwolla.wcf.chat.scss b/file/style/timwolla.wcf.chat.scss index 916840d..504c05d 100644 --- a/file/style/timwolla.wcf.chat.scss +++ b/file/style/timwolla.wcf.chat.scss @@ -100,7 +100,7 @@ .timsChatMessage { } } - .unloaded { + &.unloaded { opacity: 0.4; } }