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:
parent
8b29cbb557
commit
52a9e272ef
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user