From 192a421a19190a8f85bdfd27de03e69358f5ce20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sat, 28 Jan 2012 16:43:48 +0100 Subject: [PATCH] Adding Force-Refresh Button for the RoomList --- file/js/TimWolla.WCF.Chat.coffee | 3 +++ template/chat.tpl | 1 + 2 files changed, 4 insertions(+) diff --git a/file/js/TimWolla.WCF.Chat.coffee b/file/js/TimWolla.WCF.Chat.coffee index 08ae58f..e1caf01 100644 --- a/file/js/TimWolla.WCF.Chat.coffee +++ b/file/js/TimWolla.WCF.Chat.coffee @@ -109,6 +109,9 @@ TimWolla.WCF ?= {} @autocompleteValue = null , @ + # Refreshes the roomlist + $('#chatRoomList button').click $.proxy(@refreshRoomList, @) + # Clears the stream $('#chatClear').click (event) -> event.preventDefault() diff --git a/template/chat.tpl b/template/chat.tpl index 87e1c19..aabd9d0 100755 --- a/template/chat.tpl +++ b/template/chat.tpl @@ -119,6 +119,7 @@ {/if} {/foreach} +