From 0e7d4d9c075b296d24ad158252112d2170a27db8 Mon Sep 17 00:00:00 2001 From: Maximilian Mader Date: Fri, 9 Jan 2015 20:16:47 +0100 Subject: [PATCH] Make smiley selection compatible with WCF 2.0 and 2.1 --- file/js/be.bastelstu.Chat.litcoffee | 12 ++++++------ template/chat.tpl | 8 +++++++- template/javascriptInclude.tpl | 4 +++- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/file/js/be.bastelstu.Chat.litcoffee b/file/js/be.bastelstu.Chat.litcoffee index 217991c..081b0fb 100644 --- a/file/js/be.bastelstu.Chat.litcoffee +++ b/file/js/be.bastelstu.Chat.litcoffee @@ -157,11 +157,11 @@ Make the user leave the chat when **Tims Chat** is about to be unloaded. Insert the appropriate smiley code into the input when a smiley is clicked. - $('#smilies').on 'click', 'img', -> insertText " #{$(@).attr('alt')} " + $('#timsChatSmileyContainer').on 'click', 'img', -> insertText " #{$(@).attr('alt')} " Copy the first loaded category of smilies so it won't get detached by wcfDialog - overlaySmileyList = $('