Fix names

This commit is contained in:
danbulant 2019-06-23 15:15:32 +02:00
parent 31e45a621f
commit 5bbfc092ca

View file

@ -4,10 +4,12 @@ function refreshFiles(){
return;
}
var shown = [];
$("#files-list").empty();
files.forEach((item, index) => {
shown[index] = document.createElement('li');
$("#files-list").append(shown[index]);
shown[index].id = "file-" + index;
$("#file-" + index).html(item);
var name = item.substring(item.lastIndexOf('\\') + 1, item.length);
$("#file-" + index).html(name);
});
}