Test file list
This commit is contained in:
parent
b764dfad8b
commit
c3d775efaa
@ -574,7 +574,6 @@ function deleteFile(fileID){
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function listFiles() {
|
async function listFiles() {
|
||||||
let fileListContainer = document.getElementById("filelist");
|
|
||||||
let formData = new FormData();
|
let formData = new FormData();
|
||||||
formData.append('action', 'getAllFiles');
|
formData.append('action', 'getAllFiles');
|
||||||
|
|
||||||
@ -583,7 +582,7 @@ async function listFiles() {
|
|||||||
|
|
||||||
xhr.onload = function () {
|
xhr.onload = function () {
|
||||||
if (xhr.status === 200) {
|
if (xhr.status === 200) {
|
||||||
displayList(xhr.responseText, fileListContainer, deleteFile);
|
displayList(xhr.responseText, "filelist", deleteFile);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user