From b061992193fa0c9a413d3fb8d246eda4904c6d6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 23 Nov 2012 20:34:09 +0100 Subject: [PATCH] Verify that $chatVersion is set --- template/chat.tpl | 4 ++-- template/chatJavascriptInclude.tpl | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) 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