Edit meme creation

This commit is contained in:
Bruno Rybársky 2024-05-16 10:12:23 +02:00
parent 7c383141c6
commit c9d62ecaea
3 changed files with 6 additions and 5 deletions

@ -620,6 +620,7 @@ async function addMeme() {
meme_image_id: memeImageElement.value
}, "Meme bol zmazaný", "Nastala chyba pri mazaní meme-u", false);
memeFormElement.reset();
await togglememecreate();
}
async function deleteMeme(memeId) {

@ -316,10 +316,10 @@ span#ye-span:hover + body{
align-items: center;
justify-content: center;
position: fixed;
top: 0;
top: 15vh;
left: 0;
width: 100vw;
height: 100vh;
height: 70vh;
z-index: 4;
backdrop-filter: blur(2px);
}

@ -16,9 +16,9 @@
<div id="articlecreate">
<input type="text" placeholder="Article Title" id="articletitleinput"><br>
<textarea id="articlebodyinput" placeholder="Article Body" rows="10" cols="80"></textarea><br>
<label for="articleprivilegeinput">Oprávnenie na pozretie článku:</label><br>
<input type="number" id="articleprivilegeinput" min="1" value="1" step="1"><br>
<button id="articlesubmit" onclick="submitarticle()">Add</button>
<label for="articleprivilegeinput">Oprávnenie na pozretie článku:</label>
<input type="number" id="articleprivilegeinput" min="1" value="1" step="1">
<button id="articlesubmit" onclick="submitarticle()"><i class="ri-add-circle-line"></i></button>
<button id="articlecreateclose" onclick="togglearticlecreate()"><i class="ri-close-line"></i></button>
</div>
</div>