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 = $('
').append $('#smilies .smileyList').clone().children()
+ overlaySmileyList = $('').append $('#timsChatSmileyContainer .smileyList').clone().children()
Add click event to smilies in the overlay
@@ -322,9 +322,9 @@ Mark smilies as disabled when they are disabled.
$('#timsChatSmilies').click (event) ->
if $(@).data 'status'
- $('#smilies').removeClass 'invisible'
+ $('#timsChatSmileyContainer').removeClass 'invisible'
else
- $('#smilies').addClass 'invisible'
+ $('#timsChatSmileyContainer').addClass 'invisible'
Toggle fullscreen mode.
diff --git a/template/chat.tpl b/template/chat.tpl
index ed4f731..c3544c7 100644
--- a/template/chat.tpl
+++ b/template/chat.tpl
@@ -46,6 +46,10 @@
{if MODULE_SMILEY}
new WCF.Message.Smilies();
+
+ if (typeof $.fn.messageTabMenu === 'function') {
+ $('.messageTabMenu > .messageTabMenu').messageTabMenu().show();
+ }
{/if}
{capture assign='messageTemplate'}{include application='chat' file='message'}{/capture}
@@ -134,7 +138,9 @@
{if MODULE_SMILEY && $smileyCategories|count}
- {include file='messageFormSmilies' wysiwygSelector=''}
+
{/if}
diff --git a/template/javascriptInclude.tpl b/template/javascriptInclude.tpl
index 1fdc331..7d0555b 100644
--- a/template/javascriptInclude.tpl
+++ b/template/javascriptInclude.tpl
@@ -1,3 +1,5 @@
-{if MODULE_ATTACHMENT && $__wcf->session->getPermission('user.chat.canUploadAttachment')}{/if}
+{if !'LAST_UPDATE_TIME'|defined}
+ {if MODULE_ATTACHMENT && $__wcf->session->getPermission('user.chat.canUploadAttachment')}{/if}
+{/if}
{event name='javascript'}