diff --git a/template/chat.tpl b/template/chat.tpl index 20ec711..36acc17 100644 --- a/template/chat.tpl +++ b/template/chat.tpl @@ -44,8 +44,8 @@ $('#timsChatCopyright').click(function (event) { event.preventDefault(); if (!$.wcfIsset('timsChatCopyrightDialog')) $('
').appendTo('body'); - $('#timsChatCopyrightDialog').load('{link application='chat' controller='Copyright'}{/link}', function() { - WCF.showDialog('timsChatCopyrightDialog', { title: 'Tims Chat{if SHOW_VERSION_NUMBER} {PACKAGE_VERSION}{/if}' }); + $('#timsChatCopyrightDialog').load('{link application='chat' controller='Copyright'}{/link}').wcfDialog({ + title: 'Tims Chat{if SHOW_VERSION_NUMBER} {PACKAGE_VERSION}{/if}' }); });