aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/static
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www/src/main/static')
-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();
}