diff options
Diffstat (limited to 'juick-www/src')
-rw-r--r-- | juick-www/src/main/static/scripts.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index 9198362f..a40ed57a 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(); } |