mirror of
https://github.com/yawaflua/yaflay.ru.git
synced 2026-02-04 19:04:12 +02:00
Fix AdminPanel json
This commit is contained in:
@@ -12,11 +12,11 @@ function updateAnnotation(value) {
|
||||
function sendArticleData () {
|
||||
let melon = document.cookie.split(';')[0].replace("melon=", "");
|
||||
let body = `{
|
||||
title: ${$("#titleInput").val()},
|
||||
annotation: ${$("#annotationArea").val()},
|
||||
text: ${$("#textArea").val()},
|
||||
image: ${$("#imgInput").val()},
|
||||
author: ${melon}
|
||||
title: "${$("#titleInput").val()}",
|
||||
annotation: "${$("#annotationArea").val()}",
|
||||
text: "${$("#textArea").val()}",
|
||||
image: "${$("#imgInput").val()}",
|
||||
author: "${melon}"
|
||||
}`
|
||||
fetch("/api/Blog", {
|
||||
method: "POST",
|
||||
|
||||
Reference in New Issue
Block a user