diff options
author | makc | 2016-09-14 14:59:19 +0200 |
---|---|---|
committer | makc | 2016-09-14 14:59:19 +0200 |
commit | 975b300c01485317cbc1eaef160201ecd5a629de (patch) | |
tree | 1ffc78152611d9d0a28a3e52ce4e476b333015a3 /juick-www/src/main/static/scripts.js | |
parent | f39d2f07a411094f538255b35cd97f4be29a7288 (diff) |
skip nested replies too
Diffstat (limited to 'juick-www/src/main/static/scripts.js')
-rw-r--r-- | juick-www/src/main/static/scripts.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |