From 3580ebfd5cdee1d4fb00de66fb0df1b1a0da7376 Mon Sep 17 00:00:00 2001 From: Maximilian Mader Date: Fri, 12 Jul 2013 20:52:54 +0200 Subject: [PATCH] Simplify code a bit --- file/js/be.bastelstu.Chat.litcoffee | 42 +++++++++------------------ file/style/be.bastelstu.wcf.chat.less | 40 ++++++++++++++++++------- template/chat.tpl | 9 +++++- 3 files changed, 52 insertions(+), 39 deletions(-) diff --git a/file/js/be.bastelstu.Chat.litcoffee b/file/js/be.bastelstu.Chat.litcoffee index 06a9399..3ab3f6d 100644 --- a/file/js/be.bastelstu.Chat.litcoffee +++ b/file/js/be.bastelstu.Chat.litcoffee @@ -710,12 +710,12 @@ Joins a room. showError WCF.Language.get 'chat.error.join' Open private channel - + openPrivateChannel = (userID) -> userID = parseInt userID console.log "Opening private channel #{userID}" - + unless $.wcfIsset "timsChatMessageContainer#{userID}" return unless userList.allTime[userID]? @@ -726,42 +726,28 @@ Open private channel div.addClass 'container' div.wrapInner '