MEME
This commit is contained in:
parent
052861ff3f
commit
5c66ddc44f
@ -573,6 +573,9 @@ function deleteFile(fileID) {
|
|||||||
|
|
||||||
let xhr = new XMLHttpRequest();
|
let xhr = new XMLHttpRequest();
|
||||||
xhr.open('POST', '/upload', true);
|
xhr.open('POST', '/upload', true);
|
||||||
|
xhr.onload = function () {
|
||||||
|
listFiles();
|
||||||
|
};
|
||||||
xhr.send(formData);
|
xhr.send(formData);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -641,6 +644,7 @@ async function deleteMeme(memeId) {
|
|||||||
xhr.onload = function () {
|
xhr.onload = function () {
|
||||||
const resp = JSON.parse(xhr.responseText);
|
const resp = JSON.parse(xhr.responseText);
|
||||||
handleResponse(resp, "Meme bol zmazaný", "Nastala chyba pri mazaní meme-u");
|
handleResponse(resp, "Meme bol zmazaný", "Nastala chyba pri mazaní meme-u");
|
||||||
|
softReload();
|
||||||
};
|
};
|
||||||
xhr.send(formData);
|
xhr.send(formData);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user