Skip to content

Commit

Permalink
small refactor to updateFileSize.
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeWannacott committed May 30, 2023
1 parent 08c2239 commit 4c62e43
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions public/table-sort.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,17 +416,13 @@ function tableSortJs(testingTableSortJS = false, domDocumentWindow = document) {
template.innerHTML = columnIndexAndTableRow[column.toBeSorted[i]];
tr = template.content.firstChild;
}
let fileSizeInBytesHTML = column.getColumn(
let getColumnTd = column.getColumn(
tr,
column.spanSum,
column.span
).outerHTML;
const fileSizeInBytesText = column.getColumn(
tr,
column.spanSum,
column.span
).textContent;

);
let fileSizeInBytesHTML = getColumnTd.outerHTML
const fileSizeInBytesText = getColumnTd.textContent
const fileSize = column.toBeSorted[i].replace(/#[0-9]*/, "");
let prefixes = ["", "Ki", "Mi", "Gi", "Ti", "Pi"];
let replaced = false;
Expand Down

0 comments on commit 4c62e43

Please sign in to comment.