aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/static/scripts.js
diff options
context:
space:
mode:
authorGravatar makc2016-08-20 21:08:17 +0200
committerGravatar makc2016-08-20 21:08:17 +0200
commit4d03adb533b78c12888556e500e96c3d13df2fd8 (patch)
treed866d3a32882b74a6f697c1ebfae43b68e3567f2 /juick-www/src/main/static/scripts.js
parent703298df875e7cce1fe20d0345fcf940b5a14df3 (diff)
fix new replies links
Diffstat (limited to 'juick-www/src/main/static/scripts.js')
-rw-r--r--juick-www/src/main/static/scripts.js5
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 + ' &middot; ';
var msgLinksLink = document.createElement('a');
msgLinksLink.setAttribute('href', '#');
msgLinksLink.textContent = 'Ответить';