diff options
author | 2016-08-20 21:08:17 +0200 | |
---|---|---|
committer | 2016-08-20 21:08:17 +0200 | |
commit | 4d03adb533b78c12888556e500e96c3d13df2fd8 (patch) | |
tree | d866d3a32882b74a6f697c1ebfae43b68e3567f2 /juick-www/src | |
parent | 703298df875e7cce1fe20d0345fcf940b5a14df3 (diff) |
fix new replies links
Diffstat (limited to 'juick-www/src')
-rw-r--r-- | juick-www/src/main/static/scripts.js | 5 |
1 files changed, 5 insertions, 0 deletions
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 += ' в ответ на <a href="#' + msg.replyto + '">/' + msg.replyto + '</a>'; + } + msgLinks.innerHTML = msgNum + ' · '; var msgLinksLink = document.createElement('a'); msgLinksLink.setAttribute('href', '#'); msgLinksLink.textContent = 'Ответить'; |