Fixed a type in guestbook_admin.js.
This commit is contained in:
parent
30a5b83e10
commit
67eaa689e7
@ -58,7 +58,7 @@ for (const delete_reply_button of document.getElementsByName("delete-reply"))
|
|||||||
function send_reply(e) {
|
function send_reply(e) {
|
||||||
let data = new URLSearchParams();
|
let data = new URLSearchParams();
|
||||||
data.append("message", get_field(e.target, "message"));
|
data.append("message", get_field(e.target, "message"));
|
||||||
fetch(`/api/guestbook/${get_field(e.target, "entry_id")}/reply`, {method: "PATCH", body: data})
|
fetch(`/api/guestbook/${get_field(e.target, "entry_id")}/reply`, {method: "POST", body: data})
|
||||||
.catch(e => console.log(e))
|
.catch(e => console.log(e))
|
||||||
.then(() => window.location = "/guestbook/admin");
|
.then(() => window.location = "/guestbook/admin");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user