From ec628af83984afaced17d422d1ead4e316f587ad Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 29 Jul 2016 09:16:32 +0300 Subject: fix newReply handler --- juick-www/src/main/static/scripts.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'juick-www/src/main') diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index 8a9de0df..da306418 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -149,10 +149,11 @@ function wsIncomingReply(msg) { updateRepliesCounter(); } -function newReply(li) { +function newReply(e) { + var li = e.target; li.classList.remove('reply-new'); - li.removeEventListener('click', this); - li.removeEventListener('mouseover', this); + li.removeEventListener('click', e); + li.removeEventListener('mouseover', e); updateRepliesCounter(); } -- cgit v1.2.3