forked from Adleraci/adlerka.top
Fix meme
This commit is contained in:
parent
1f425aadcc
commit
12118b5ce3
@ -206,6 +206,7 @@ async function togglememecreate() {
|
|||||||
"use strict";
|
"use strict";
|
||||||
let memeContainerElement = document.getElementById("memecreatecontainer");
|
let memeContainerElement = document.getElementById("memecreatecontainer");
|
||||||
|
|
||||||
|
await getMemeImages();
|
||||||
memeContainerElement.classList.toggle("hidden");
|
memeContainerElement.classList.toggle("hidden");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -618,9 +619,9 @@ async function addMeme() {
|
|||||||
meme_text: memeTextElement.value,
|
meme_text: memeTextElement.value,
|
||||||
meme_image_id: memeImageElement.value
|
meme_image_id: memeImageElement.value
|
||||||
}, "Meme bol zmazaný", "Nastala chyba pri mazaní meme-u", false);
|
}, "Meme bol zmazaný", "Nastala chyba pri mazaní meme-u", false);
|
||||||
memeTextElement.reset();
|
memeTitleElement.value = "";
|
||||||
memeImageElement.reset();
|
memeTextElement.value = "";
|
||||||
memeImageElement.reset();
|
memeImageElement.selectedIndex = 0
|
||||||
await togglememecreate();
|
await togglememecreate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user