mirror of
https://github.com/openvk/openvk
synced 2025-03-15 14:05:36 +03:00
Reports: Modified the route
This commit is contained in:
parent
67c701f6f9
commit
35b70268a8
2 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@
|
||||||
(function() {
|
(function() {
|
||||||
res = document.querySelector("#uReportMsgInput").value;
|
res = document.querySelector("#uReportMsgInput").value;
|
||||||
xhr = new XMLHttpRequest();
|
xhr = new XMLHttpRequest();
|
||||||
xhr.open("GET", "/report.pl/" + {$post->getId()} + "?reason=" + res + "&type=post", true);
|
xhr.open("GET", "/report/" + {$post->getId()} + "?reason=" + res + "&type=post", true);
|
||||||
xhr.onload = (function() {
|
xhr.onload = (function() {
|
||||||
if(xhr.responseText.indexOf("reason") === -1)
|
if(xhr.responseText.indexOf("reason") === -1)
|
||||||
MessageBox("Ошибка", "Не удалось подать жалобу...", ["OK"], [Function.noop]);
|
MessageBox("Ошибка", "Не удалось подать жалобу...", ["OK"], [Function.noop]);
|
||||||
|
|
|
@ -265,7 +265,7 @@ routes:
|
||||||
handler: "Report->view"
|
handler: "Report->view"
|
||||||
- url: "/admin/reportAction{num}"
|
- url: "/admin/reportAction{num}"
|
||||||
handler: "Report->action"
|
handler: "Report->action"
|
||||||
- url: "/report.pl/{num}"
|
- url: "/report/{num}"
|
||||||
handler: "Report->create"
|
handler: "Report->create"
|
||||||
- url: "/method/{text}.{text}"
|
- url: "/method/{text}.{text}"
|
||||||
handler: "VKAPI->route"
|
handler: "VKAPI->route"
|
||||||
|
|
Loading…
Reference in a new issue