diff options
author | Vitaly Takmazov | 2016-07-29 09:16:32 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-07-29 09:16:32 +0300 |
commit | ec628af83984afaced17d422d1ead4e316f587ad (patch) | |
tree | 9c4bd74f426435076835a50bd9d49dd4bcf141ba | |
parent | 852d6ca2e2b5a61d672d0ef0ac9d3e766aced65e (diff) |
fix newReply handler
-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 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(); } |