mirror of
https://github.com/danbulant/console-hub
synced 2026-06-15 12:31:21 +00:00
Fix names
This commit is contained in:
parent
31e45a621f
commit
5bbfc092ca
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue