diff --git a/template/chat.tpl b/template/chat.tpl index 2bbbaaf..0ba448b 100644 --- a/template/chat.tpl +++ b/template/chat.tpl @@ -167,11 +167,11 @@ $('#timsChatInput').enable().jCounter().focus(); $('#timsChatCopyright').click(function (event) { event.preventDefault(); - if ($.wcfIsset('timsChatCopyrightDialog')) return WCF.showDialog('timsChatCopyrightDialog', { title: 'Tims Chat{if CHAT_SHOW_VERSION} {$chatVersion}{/if}' }); + if ($.wcfIsset('timsChatCopyrightDialog')) return WCF.showDialog('timsChatCopyrightDialog', { title: 'Tims Chat{if CHAT_SHOW_VERSION && $chatVersion|isset} {$chatVersion}{/if}' }); var container = $('
'); container.load('{link controller='Chat' action='Copyright'}{/link}', function() { $('body').append(container); - WCF.showDialog('timsChatCopyrightDialog', { title: 'Tims Chat{if CHAT_SHOW_VERSION} {$chatVersion}{/if}' }); + WCF.showDialog('timsChatCopyrightDialog', { title: 'Tims Chat{if CHAT_SHOW_VERSION && $chatVersion|isset} {$chatVersion}{/if}' }); }); }); })(jQuery, this) diff --git a/template/chatJavascriptInclude.tpl b/template/chatJavascriptInclude.tpl index ddbe60d..bfc7b31 100644 --- a/template/chatJavascriptInclude.tpl +++ b/template/chatJavascriptInclude.tpl @@ -1,4 +1,7 @@ {if CHAT_SOCKET_IO_PATH}{/if} +{if $templateName == 'chatLog'} + +{/if} {event name='javascript'} \ No newline at end of file