Add article creation frontend

This commit is contained in:
Bruno Rybársky 2024-02-22 10:48:49 +01:00
parent 5090c8e4bd
commit e81dc8e8ac

@ -190,10 +190,7 @@ async function submitarticle(){
} }
async function articleInit(){ async function articleInit(){
let articleSubmitElement = document.getElementById("articlesubmit");
let articleAddElement = document.getElementById("articlecreateopen");
articleAddElement.addEventListener("click", togglearticlecreate);
articleSubmitElement.addEventListener("click", submitarticle);
} }
async function onPageLoad() { async function onPageLoad() {