These getElementsByTagName can be replaced with children field.
This commit is contained in:
parent
dfe60f527c
commit
197d52964d
@ -61,7 +61,7 @@ file_links.forEach(f => f.addEventListener('click', e => {
|
|||||||
//// SORT BY COLUMN
|
//// SORT BY COLUMN
|
||||||
|
|
||||||
const [thead_name, thead_date, thead_size] = document.getElementsByTagName('thead')[0]
|
const [thead_name, thead_date, thead_size] = document.getElementsByTagName('thead')[0]
|
||||||
.getElementsByTagName('tr')[0].getElementsByTagName('th');
|
.children[0].children;
|
||||||
const tbody = document.getElementsByTagName('tbody')[0];
|
const tbody = document.getElementsByTagName('tbody')[0];
|
||||||
|
|
||||||
let g_sort_reverse = false;
|
let g_sort_reverse = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user