Don't need a variable to identify 'Path' column

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

View File

@ -1,7 +1,3 @@
// var sort_column = undefined;
// (document.querySelectorAll("th")).forEach((element, indx) => { if (element.textContent == "Path") {sort_column = indx} } );
var sort_column = 2;
let new_directory_name = document.getElementById("name");
let files = document.getElementById("files");
@ -122,7 +118,7 @@ async function refresh_list() {
edit_link.href = edit_url
}
var dataCell = td[sort_column];
var dataCell = td[2];
var sortdata = {};
sortdata.value = dataCell.textContent.toLowerCase().trim();