Fix meme
This commit is contained in:
parent
87f2129652
commit
1f425aadcc
@ -611,7 +611,6 @@ async function addMeme() {
|
|||||||
let memeTitleElement = document.getElementById("meme_title_input");
|
let memeTitleElement = document.getElementById("meme_title_input");
|
||||||
let memeTextElement = document.getElementById("meme_text_input");
|
let memeTextElement = document.getElementById("meme_text_input");
|
||||||
let memeImageElement = document.getElementById("meme_image_input");
|
let memeImageElement = document.getElementById("meme_image_input");
|
||||||
let memeFormElement = document.getElementById("memeAddForm");
|
|
||||||
|
|
||||||
await doAction("/meme", {
|
await doAction("/meme", {
|
||||||
action: "addMeme",
|
action: "addMeme",
|
||||||
@ -619,7 +618,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);
|
||||||
memeFormElement.reset();
|
memeTextElement.reset();
|
||||||
|
memeImageElement.reset();
|
||||||
|
memeImageElement.reset();
|
||||||
await togglememecreate();
|
await togglememecreate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user