From a87dcf201bb165ac97b908ed9c2b17ede26ab9a7 Mon Sep 17 00:00:00 2001 From: RetiredWizard Date: Fri, 5 Aug 2022 22:35:57 -0400 Subject: [PATCH] Don't need a variable to identify 'Path' column --- supervisor/shared/web_workflow/static/directory.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/supervisor/shared/web_workflow/static/directory.js b/supervisor/shared/web_workflow/static/directory.js index a822d4a239..a565100e12 100644 --- a/supervisor/shared/web_workflow/static/directory.js +++ b/supervisor/shared/web_workflow/static/directory.js @@ -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();