From c74feeb8cda99f89e873f2bde9f53807cbc773ab Mon Sep 17 00:00:00 2001 From: bruno Date: Thu, 22 Feb 2024 12:28:16 +0100 Subject: [PATCH] Add article creation frontend --- assets/script.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/script.js b/assets/script.js index 9418ade..4077d14 100644 --- a/assets/script.js +++ b/assets/script.js @@ -186,7 +186,9 @@ async function submitarticle(){ action: "addNewsArticle", title: articleTitleElement.value, body: articleBodyElement.value - }); + }, "Článok úspešne pridaný", + "Nastala chyba pri pridávaní článku", + false); } async function articleInit(){