From 52a9e272efea20cf29eaef022807445d43722ec7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sat, 14 Jan 2012 16:56:43 +0100 Subject: [PATCH] Avoid problems with duplicate IDs --- template/chat.tpl | 1 + 1 file changed, 1 insertion(+) diff --git a/template/chat.tpl b/template/chat.tpl index 36ad055..7d70128 100644 --- a/template/chat.tpl +++ b/template/chat.tpl @@ -203,6 +203,7 @@ $('#chatInput').jCounter(); $('#chatControls .copyright').click(function (event) { event.preventDefault(); + if ($.wcfIsset('chatCopyrightDialog')) return WCF.showDialog('chatCopyrightDialog', true, { title: 'Tims Chat{if CHAT_SHOW_VERSION} {$chatVersion}{/if}' }); var container = $('
'); container.load('{link controller='Chat' action='Copyright'}{/link}', function() { $('body').append(container);