From 12dd915ea288fd50f2fccec82fed8a5131a729ca Mon Sep 17 00:00:00 2001 From: Maximilian Mader Date: Fri, 9 Jan 2015 20:16:47 +0100 Subject: [PATCH 1/3] Backport: Make smiley selection compatible with WCF 2.0 and 2.1 This backports 0e7d4d9c075b296d24ad158252112d2170a27db8 Conflicts: file/js/be.bastelstu.Chat.litcoffee --- file/js/be.bastelstu.Chat.litcoffee | 8 ++++---- template/chat.tpl | 8 +++++++- template/javascriptInclude.tpl | 4 +++- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/file/js/be.bastelstu.Chat.litcoffee b/file/js/be.bastelstu.Chat.litcoffee index b73dbbf..d983f44 100644 --- a/file/js/be.bastelstu.Chat.litcoffee +++ b/file/js/be.bastelstu.Chat.litcoffee @@ -156,11 +156,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 = $('