1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Avoid problems with duplicate IDs

This commit is contained in:
Tim Düsterhus 2012-01-14 16:56:43 +01:00
parent 8b29cbb557
commit 52a9e272ef

View File

@ -203,6 +203,7 @@
$('#chatInput').jCounter(); $('#chatInput').jCounter();
$('#chatControls .copyright').click(function (event) { $('#chatControls .copyright').click(function (event) {
event.preventDefault(); event.preventDefault();
if ($.wcfIsset('chatCopyrightDialog')) return WCF.showDialog('chatCopyrightDialog', true, { title: 'Tims Chat{if CHAT_SHOW_VERSION} {$chatVersion}{/if}' });
var container = $('<div id="chatCopyrightDialog"></div>'); var container = $('<div id="chatCopyrightDialog"></div>');
container.load('{link controller='Chat' action='Copyright'}{/link}', function() { container.load('{link controller='Chat' action='Copyright'}{/link}', function() {
$('body').append(container); $('body').append(container);