From 6790c9077f5419931a7241a9f588747a70a3749b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 18 Dec 2011 14:52:20 +0100 Subject: [PATCH] Use this instead of event.target The second one differs from where your clicked --- file/js/TimWolla.WCF.Chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file/js/TimWolla.WCF.Chat.js b/file/js/TimWolla.WCF.Chat.js index a194452..4854dab 100644 --- a/file/js/TimWolla.WCF.Chat.js +++ b/file/js/TimWolla.WCF.Chat.js @@ -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);