From c3d775efaa95819862179b7de5a294f6b225fd41 Mon Sep 17 00:00:00 2001 From: bruno Date: Thu, 25 Apr 2024 15:02:38 +0200 Subject: [PATCH] Test file list --- assets/script.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } };