From 374ff3433eea434f8dd15994970a594409d060aa Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 28 May 2021 02:52:03 +0200 Subject: [PATCH] gj --- copyparty/web/browser.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 20ef100f..0c59feae 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -2058,9 +2058,10 @@ var msel = (function () { var tr = ebi('files').tBodies[0].rows; for (var a = 0; a < tr.length; a++) { var td = tr[a].cells[1], - href = td.firstChild.getAttribute('href'), + ao = td.firstChild, + href = ao.getAttribute('href'), isdir = href.split('?')[0].slice(-1)[0] == '/', - txt = href.textContent; + txt = ao.textContent; td.setAttribute('sortv', (isdir ? '\t' : '') + txt); }