Repto message link

This commit is contained in:
Denis Zheleztsov 2018-01-01 22:00:26 +03:00
parent c7ca99d111
commit 0fde826b75

View File

@ -141,19 +141,6 @@ function ajaxRequest(data) {
})
}
// Cleanup AJAX function
function ajaxCleanupRequest(data) {
$.ajax({
url:"https://dynamic.lessmore.pw/search",
type:"POST",
data: data,
success:function(messages){
cleanupCallback(messages);
$("#mes").html(html);
}
})
}
function requestEmptyEcho() {
var data = '{"sort": [{"date": {"order": "desc"}}, {"_score": {"order": "desc" }}], "size": 5}';
ajaxRequest(data);
@ -312,11 +299,16 @@ function callback(messages) {
// Author to receiver
+ '<a style="text-decoration:underline; text-decoration-style:dotted;" title="' + msgItem["address"] + '" "href="javascript:void(0)" onclick="requestAuthorMessages(\'' + msgItem['author'] + '\');">' + msgItem['author'] + '</a>'
+ ' <i class="fa fa-angle-double-right"></i> '
+ '<a href="javascript:void(0)" onclick="requestAuthorMessages(\'' + msgItem['to'] + '\', true);">' + msgItem['to'] + '</a></p>'
+ ' <i class="fa fa-angle-double-right"></i> ';
if (msgItem['repto'] != "" ) {
html += '<a href="/?' + msgItem['repto'] + '">' + msgItem['to'] + '</a></p>';
} else {
html += msgItem['to'] + '</p>';
}
// Header
+ ' <p style="color:#0099cc;font: 1.5em Open Sans, sans-serif;">'
html += ' <p style="color:#0099cc;font: 1.5em Open Sans, sans-serif;">'
+ '<a class="headerLink" href="javascript:void(0)" onclick="requestBuildThread(\'' + msgItem['msgid'] + '\', true)">'
+ msgItem['subg'] + '</a>'
+ ' <i class="fa fa-at"></i> <i><a class="headerLink" href="javascript:void(0)" onclick="requestTmpEcho(\'' + msgItem['echo'] + '\')">' + msgItem['echo']
@ -325,7 +317,10 @@ function callback(messages) {
+ '</p><p align="right">'
// Msgid
+ '<a href="?' + msgItem['msgid'] +'" onclick="requestMessage(\'' + msgItem['msgid'] + '\');"><i class="fa fa-link"></i>' + msgItem['msgid'] + '</a></p></div>';
+ '<a href="?' + msgItem['msgid'] +'" onclick="requestMessage(\'' + msgItem['msgid'] + '\');"><i class="fa fa-link"></i>' + msgItem['msgid'] + '</a>';
// End message <div> block
html += '</p></div>';
if (hash.matched && msgItem['msgid'] == hash.hash) {
html += '</div>';