Links to echo

This commit is contained in:
Denis Zheleztsov 2017-12-07 13:20:44 +03:00
parent 9c6044cf6c
commit 8407c1f3ee
2 changed files with 14 additions and 3 deletions

View File

@ -102,6 +102,10 @@ body {
border-color: red;
}
.headerLink {
color: #0099cc !important;
}
select {
font-size: 1em;
margin: 80px 0 0;

View File

@ -151,6 +151,13 @@ function requestEcho() {
ajaxRequest(data);
}
function requestTmpEcho(e) {
echo = e;
html = '';
var data = '{"sort": [{"date": {"order": "desc"}}, {"_score": { "order": "desc" }}], "query": {"query_string" : {"fields": ["echo"], "query": "' + echo + '"}}, "size":' + 5 + '}';
ajaxRequest(data);
}
function requestEmptyEchoOffset() {
var data = '{"sort": [ { "date": { "order": "desc" }}, { "_score": { "order": "desc" }}],"size":'+ show_rows + ', "from":'+ from + '}';
ajaxRequest(data);
@ -221,12 +228,12 @@ function callback(messages) {
+ '<p align="left"><i class="fa fa-hourglass-half"></i> ' + t_formatted + '<i class="fa fa-angle-right"></i> <!--/p-->'
// Author to receiver
+ '<a href="#" onclick="requestAuthorMessages(\'' + msgItem['author'] + '\');">' + msgItem['author'] + '</a>'
+ '<a href="javascript:void(0)" onclick="requestAuthorMessages(\'' + msgItem['author'] + '\');">' + msgItem['author'] + '</a>'
+ ' <i class="fa fa-angle-double-right"></i> '
+ '<a href="#" onclick="requestAuthorMessages(\'' + msgItem['to'] + '\', true);">' + msgItem['to'] + '</a></p>'
+ '<a href="javascript:void(0)" onclick="requestAuthorMessages(\'' + msgItem['to'] + '\', true);">' + msgItem['to'] + '</a></p>'
+ ' <p style="color:#0099cc;font: 1.5em Open Sans, sans-serif;">'
+ msgItem['subg'] + ' @ <i>' + msgItem['echo'] + '</i></p></p>'
+ msgItem['subg'] + ' @ <i><a class="headerLink" href="javascript:void(0)" onclick="requestTmpEcho(\'' + msgItem['echo'] + '\')">' + msgItem['echo'] + '</a></i></p></p>'
+ '<p>' + msg.autoLink()
+ '</p><p align="right">'
+ '<a href="?' + msgItem['msgid'] +'" onclick="requestMessage(\'' + msgItem['msgid'] + '\');">#' + msgItem['msgid'] + '</a></p></div>';