From 6d14175896a3532516b8b62cb782f06ffb676abd Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 28 Jul 2016 02:09:53 +0300 Subject: www: fix replies tree queries --- juick-www/src/main/static/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index b9becc16..d620b643 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -572,7 +572,7 @@ ready(function () { if (pageMID > 0) { var rid; document.querySelectorAll('.msg-comments').forEach(function(e) { - rid = e.parentNode.parentNode.id; + rid = e.closest('li').id; e.addEventListener('click', function (e) { showMoreReplies(e.target, rid); e.preventDefault(); -- cgit v1.2.3