aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/static/scripts.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-07-28 03:04:42 +0300
committerGravatar Vitaly Takmazov2016-07-28 03:04:42 +0300
commit99fffda5fa9d14282f6cae4e544fe347d9228009 (patch)
tree31b89f2c3affc21c4f50d1ef1080144f24e6940f /juick-www/src/main/static/scripts.js
parent279c3da2f08f5fdd02ae38100a537a45e24864ed (diff)
www: fix rid capture
Diffstat (limited to 'juick-www/src/main/static/scripts.js')
-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();
});