diff --git a/assets/script.js b/assets/script.js index b0b6329..f5a5bd3 100644 --- a/assets/script.js +++ b/assets/script.js @@ -574,7 +574,6 @@ function deleteFile(fileID){ } async function listFiles() { - let fileListContainer = document.getElementById("filelist"); let formData = new FormData(); formData.append('action', 'getAllFiles'); @@ -583,7 +582,7 @@ async function listFiles() { xhr.onload = function () { if (xhr.status === 200) { - displayList(xhr.responseText, fileListContainer, deleteFile); + displayList(xhr.responseText, "filelist", deleteFile); } };