minor cleanup

This commit is contained in:
RetiredWizard 2022-08-05 22:07:22 -04:00 committed by GitHub
parent 52bd028dac
commit 328fe4d2ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,10 +71,8 @@ async function refresh_list() {
// Remove the delete button
td[4].replaceChildren();
var dataCell = td[sort_column];
var sortdata = {};
sortdata.value = dataCell.textContent.toLowerCase().trim();
sortdata.value = "..";
sortdata.index = index;
dirCells.push(sortdata);
index += 1;
@ -86,8 +84,6 @@ async function refresh_list() {
// Clone the new row and insert it into the table
var clone = template.content.cloneNode(true);
var td = clone.querySelectorAll("td");
var dataCell = td[sort_column];
var icon = "⬇";
var file_path = current_path + f.name;
let api_url = new URL("/fs" + file_path, url_base);