mirror of
https://github.com/openvk/openvk
synced 2025-03-14 21:45:22 +03:00
oh fuck
This commit is contained in:
parent
331e1cb0d4
commit
22d49a1cb9
3 changed files with 10 additions and 8 deletions
|
@ -82,20 +82,20 @@
|
||||||
</table>
|
</table>
|
||||||
<script n:if="$canReport ?? false">
|
<script n:if="$canReport ?? false">
|
||||||
function reportComment() {
|
function reportComment() {
|
||||||
uReportMsgTxt = "Вы собираетесь пожаловаться на данный комментарий.";
|
uReportMsgTxt = tr("going_to_report_comment");
|
||||||
uReportMsgTxt += "<br/>Что именно вам кажется недопустимым в этом материале?";
|
uReportMsgTxt += "<br/>"+tr("report_question_text");
|
||||||
uReportMsgTxt += "<br/><br/><b>Причина жалобы</b>: <input type='text' id='uReportMsgInput' placeholder='Причина' />"
|
uReportMsgTxt += "<br/><br/><b>"+tr("report_reason")+"</b>: <input type='text' id='uReportMsgInput' placeholder='" + tr("reason") + "' />"
|
||||||
|
|
||||||
MessageBox("Пожаловаться?", uReportMsgTxt, ["Подтвердить", "Отмена"], [
|
MessageBox(tr("report_question"), uReportMsgTxt, [tr("confirm_m"), tr("cancel")], [
|
||||||
(function() {
|
(function() {
|
||||||
res = document.querySelector("#uReportMsgInput").value;
|
res = document.querySelector("#uReportMsgInput").value;
|
||||||
xhr = new XMLHttpRequest();
|
xhr = new XMLHttpRequest();
|
||||||
xhr.open("GET", "/report/" + {$comment->getId()} + "?reason=" + res + "&type=comment", true);
|
xhr.open("GET", "/report/" + {$comment->getId()} + "?reason=" + res + "&type=comment", true);
|
||||||
xhr.onload = (function() {
|
xhr.onload = (function() {
|
||||||
if(xhr.responseText.indexOf("reason") === -1)
|
if(xhr.responseText.indexOf("reason") === -1)
|
||||||
MessageBox("Ошибка", "Не удалось подать жалобу...", ["OK"], [Function.noop]);
|
MessageBox(tr("error"), tr("error_sending_report"), ["OK"], [Function.noop]);
|
||||||
else
|
else
|
||||||
MessageBox("Операция успешна", "Скоро её рассмотрят модераторы", ["OK"], [Function.noop]);
|
MessageBox(tr("action_successfully"), tr("will_be_watched"), ["OK"], [Function.noop]);
|
||||||
});
|
});
|
||||||
xhr.send(null);
|
xhr.send(null);
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -939,6 +939,7 @@
|
||||||
"going_to_report_user" = "You are about to report this user.";
|
"going_to_report_user" = "You are about to report this user.";
|
||||||
"going_to_report_video" = "You are about to report this video.";
|
"going_to_report_video" = "You are about to report this video.";
|
||||||
"going_to_report_post" = "You are about to report this post.";
|
"going_to_report_post" = "You are about to report this post.";
|
||||||
|
"going_to_report_comment" = "You are about to report this comment.";
|
||||||
|
|
||||||
"comment" = "Comment";
|
"comment" = "Comment";
|
||||||
"sender" = "Sender";
|
"sender" = "Sender";
|
||||||
|
|
|
@ -873,6 +873,7 @@
|
||||||
"going_to_report_user" = "Вы собираетесь пожаловаться на данного пользователя.";
|
"going_to_report_user" = "Вы собираетесь пожаловаться на данного пользователя.";
|
||||||
"going_to_report_video" = "Вы собираетесь пожаловаться на данную видеозапись.";
|
"going_to_report_video" = "Вы собираетесь пожаловаться на данную видеозапись.";
|
||||||
"going_to_report_post" = "Вы собираетесь пожаловаться на данную запись.";
|
"going_to_report_post" = "Вы собираетесь пожаловаться на данную запись.";
|
||||||
|
"going_to_report_comment" = "Вы собираетесь пожаловаться на данный комментарий.";
|
||||||
|
|
||||||
"comment" = "Комментарий";
|
"comment" = "Комментарий";
|
||||||
"sender" = "Отправитель";
|
"sender" = "Отправитель";
|
||||||
|
|
Loading…
Reference in a new issue