aboutsummaryrefslogtreecommitdiff
path: root/juick-www
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www')
-rw-r--r--juick-www/src/main/static/scripts.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js
index d620b643..6f5d40fa 100644
--- a/juick-www/src/main/static/scripts.js
+++ b/juick-www/src/main/static/scripts.js
@@ -570,17 +570,16 @@ ready(function () {
if (content) {
var pageMID = content.getAttribute('data-mid');
if (pageMID > 0) {
- var rid;
document.querySelectorAll('.msg-comments').forEach(function(e) {
- rid = e.closest('li').id;
e.addEventListener('click', function (e) {
+ var rid = e.target.closest('li').id;
showMoreReplies(e.target, rid);
e.preventDefault();
});
});
document.querySelectorAll('.a-thread-comment').forEach(function(e) {
- rid = e.closest('li').id;
e.addEventListener('click', function (e) {
+ var rid = e.target.closest('li').id;
showCommentForm(pageMID, rid);
e.preventDefault();
});