From e1cc866a830a989841fab396ee15a611db2f9ceb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 15 Oct 2012 12:08:57 +0200 Subject: [PATCH] Improve and fix template --- file/js/be.bastelstu.WCF.Chat.coffee | 2 +- template/chat.tpl | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/file/js/be.bastelstu.WCF.Chat.coffee b/file/js/be.bastelstu.WCF.Chat.coffee index a986e3a..f115b09 100644 --- a/file/js/be.bastelstu.WCF.Chat.coffee +++ b/file/js/be.bastelstu.WCF.Chat.coffee @@ -276,7 +276,7 @@ window.console ?= # Loads new messages. ### getMessages: () -> - $.ajax 'index.php/Chat/Message/', + $.ajax @config.messageURL, dataType: 'json' type: 'POST' success: $.proxy((data, textStatus, jqXHR) -> diff --git a/template/chat.tpl b/template/chat.tpl index bad0d87..d43b0d4 100644 --- a/template/chat.tpl +++ b/template/chat.tpl @@ -67,7 +67,7 @@ -
+
@@ -77,7 +77,7 @@ {include file='__messageFormSmilies' smilies=$defaultSmilies} {/capture} -
+
{if $smileyCategories|count}