From c6e776b6683a16b0d846c116cf4e2bba9194f668 Mon Sep 17 00:00:00 2001 From: Maximilian Mader Date: Sat, 21 Jun 2014 21:24:57 +0200 Subject: [PATCH] Hide upload button while private channel is being active --- file/js/be.bastelstu.Chat.litcoffee | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/file/js/be.bastelstu.Chat.litcoffee b/file/js/be.bastelstu.Chat.litcoffee index b1ebbf7..e705018 100644 --- a/file/js/be.bastelstu.Chat.litcoffee +++ b/file/js/be.bastelstu.Chat.litcoffee @@ -993,13 +993,17 @@ Open private channel $('#timsChatMessageTabMenu > .tabMenu > ul').append li $('#timsChatMessageTabMenu').wcfTabs 'refresh' WCF.System.FlexibleMenu.rebuild $('#timsChatMessageTabMenu > .tabMenu').attr 'id' + + do $('#timsChatUpload').parent().hide else $('#timsChatTopic > .topic').text roomList.active.topic if roomList.active.topic.trim() is '' or hiddenTopics[roomList.active.roomID]? $('#timsChatTopic').addClass 'invisible' else $('#timsChatTopic').removeClass 'invisible' - + + do $('#timsChatUpload').parent().show + $('.timsChatMessageContainer').removeClass 'active' $("#timsChatMessageContainer#{userID}").addClass 'active' $("#timsChatMessageTabMenuAnchor#{userID}").parent().removeClass 'notify'