aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-07-29 10:20:10 +0300
committerGravatar Vitaly Takmazov2016-07-29 10:20:10 +0300
commitadf998977204a69b0dc240792d3305c4bd5989c3 (patch)
treef7963eeadaf9a4ce7a186e53de39148280c666d5
parent8c5ac820e1623c517965f9cd9a762dec633ed27f (diff)
parentec628af83984afaced17d422d1ead4e316f587ad (diff)
Merge branch 'master' of ssh://den.jabber.ru:2205/var/lib/git/com.juick.http.www
-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 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();
}