mirror of
https://github.com/danbulant/console-hub
synced 2026-07-03 10:00:52 +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;
|
return;
|
||||||
}
|
}
|
||||||
var shown = [];
|
var shown = [];
|
||||||
|
$("#files-list").empty();
|
||||||
files.forEach((item, index) => {
|
files.forEach((item, index) => {
|
||||||
shown[index] = document.createElement('li');
|
shown[index] = document.createElement('li');
|
||||||
$("#files-list").append(shown[index]);
|
$("#files-list").append(shown[index]);
|
||||||
shown[index].id = "file-" + 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