From e7e858bf508c04379a7fd46c2f07540659dc8025 Mon Sep 17 00:00:00 2001 From: Igor Ustyugov Date: Mon, 29 Aug 2016 16:32:15 +0500 Subject: wsIncomingReply fix --- juick-www/src/main/static/scripts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'juick-www/src/main/static/scripts.js') diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index 3a656364..36b6fc36 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -92,7 +92,6 @@ function wsIncomingReply(msg) { msgAvatarImg.setAttribute('src', '//i.juick.com/a/' + msg.user.uid + '.png'); msgAvatarLink.appendChild(msgAvatarImg); msgAvatar.appendChild(msgAvatarLink); - li.appendChild(msgAvatar); var msgCont = document.createElement('div'); msgCont.setAttribute('class', 'msg-cont'); @@ -140,8 +139,9 @@ function wsIncomingReply(msg) { msgComment.setAttribute('class', 'msg-comment'); msgComment.style.display = 'none'; msgCont.appendChild(msgMenu); + msgCont.appendChild(msgTimestamp); + msgCont.appendChild(msgAvatar); msgCont.appendChild(msgHeader); - msgCont.appendChild(msgTimestamp); msgCont.appendChild(msgTxt); msgCont.appendChild(msgLinks); msgCont.appendChild(msgComment); -- cgit v1.2.3