aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www/src/main')
-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 = 'Ответить';