1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2025-01-09 00:20:08 +00:00

Use this instead of event.target

The second one differs from where your clicked
This commit is contained in:
Tim Düsterhus 2011-12-18 14:52:20 +01:00
parent f8c2ba051e
commit 6790c9077f

View File

@ -54,7 +54,7 @@ if (typeof TimWolla.WCF == 'undefined') TimWolla.WCF = {};
});
$('.chatToggle').click(function (event) {
var element = $(event.target).parent();
var element = $(this);
var icon = $('img', element);
if (element.data('status') == '1') {
element.data('status', 0);