From 4d03adb533b78c12888556e500e96c3d13df2fd8 Mon Sep 17 00:00:00 2001 From: makc Date: Sat, 20 Aug 2016 21:08:17 +0200 Subject: fix new replies links --- juick-www/src/main/static/scripts.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'juick-www/src') diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js index ee0c0912..3a656364 100644 --- a/juick-www/src/main/static/scripts.js +++ b/juick-www/src/main/static/scripts.js @@ -123,6 +123,11 @@ function wsIncomingReply(msg) { msgTxt.setAttribute('class', 'msg-txt'); var msgLinks = document.createElement('div'); msgLinks.setAttribute('class', 'msg-links'); + var msgNum = '/' + msg.rid; + if (msg.replyto > 0) { + msgNum += ' в ответ на /' + msg.replyto + ''; + } + msgLinks.innerHTML = msgNum + ' · '; var msgLinksLink = document.createElement('a'); msgLinksLink.setAttribute('href', '#'); msgLinksLink.textContent = 'Ответить'; -- cgit v1.2.3