aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-07-29 09:16:32 +0300
committerGravatar Vitaly Takmazov2016-07-29 09:16:32 +0300
commitec628af83984afaced17d422d1ead4e316f587ad (patch)
tree9c4bd74f426435076835a50bd9d49dd4bcf141ba /juick-www/src/main
parent852d6ca2e2b5a61d672d0ef0ac9d3e766aced65e (diff)
fix newReply handler
Diffstat (limited to 'juick-www/src/main')
-rw-r--r--juick-www/src/main/static/scripts.js7
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();
}