From 975b300c01485317cbc1eaef160201ecd5a629de Mon Sep 17 00:00:00 2001 From: makc Date: Wed, 14 Sep 2016 14:59:19 +0200 Subject: skip nested replies too --- juick-www/src/main/static/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-www') diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index 91ea8bda..ebeba198 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -157,7 +157,7 @@ function wsIncomingReply(msg) { if (isTreeMode() && (msg.replyto > 0)) { var p = document.getElementById(msg.replyto); var m = parseInt(p.style.marginLeft) + 20; - while (p.nextElementSibling && (parseInt(p.nextElementSibling.style.marginLeft) == m)) p = p.nextElementSibling; + while (p.nextElementSibling && (parseInt(p.nextElementSibling.style.marginLeft) >= m)) p = p.nextElementSibling; li.style.marginLeft = m + 'px'; p.parentNode.insertBefore(li, p.nextSibling); } else { -- cgit v1.2.3