mirror of
https://github.com/yawaflua/yaflay.ru.git
synced 2026-02-04 19:04:12 +02:00
fix adminpanel.js
This commit is contained in:
@@ -13,8 +13,8 @@ function sendArticleData () {
|
|||||||
let melon = document.cookie.split(';')[0].replace("melon=", "");
|
let melon = document.cookie.split(';')[0].replace("melon=", "");
|
||||||
let body = `{
|
let body = `{
|
||||||
title: "${$("#titleInput").val().replace(/"/g, '\\"') }",
|
title: "${$("#titleInput").val().replace(/"/g, '\\"') }",
|
||||||
annotation: "${$("#annotationArea").val().replace(/\t/g, '\r\n').replace(/"/g, '\\"') }",
|
annotation: "${$("#annotationArea").val().replace(/\n/g, " \\n").replace(/"/g, '\\"') }}",
|
||||||
text: "${$("#textArea").val().replace(/\t/g, '\r\n').replace(/"/g, '\\"') }",
|
text: "${$("#textArea").val().replace(/\n/g, " \\n").replace(/"/g, '\\"') }",
|
||||||
image: "${$("#imgInput").val()}",
|
image: "${$("#imgInput").val()}",
|
||||||
author: "${melon}"
|
author: "${melon}"
|
||||||
}`
|
}`
|
||||||
|
|||||||
Reference in New Issue
Block a user