diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 9439c9a6..f979d889 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -1592,7 +1592,7 @@ function sortfiles(nodes) { if ((v + '').indexOf('')[1]; else if (name == "href" && v) { - if (v.slice(-1) == '/') + if (v.split('?')[0].slice(-1) == '/') v = '\t' + v; v = uricom_dec(v)[0] @@ -3297,8 +3297,9 @@ var treectl = (function () { nodes = sortfiles(nodes); for (var a = 0; a < nodes.length; a++) { var r = nodes[a], - hname = esc(uricom_dec(r.href)[0]), - sortv = (r.href.slice(-1) == '/' ? '\t' : '') + hname, + bhref = r.href.split('?')[0], + hname = esc(uricom_dec(bhref)[0]), + sortv = (bhref.slice(-1) == '/' ? '\t' : '') + hname, ln = ['' + r.lead + '' + hname + '', r.sz]; diff --git a/copyparty/web/util.js b/copyparty/web/util.js index 76b9c1ff..79ca1c9e 100644 --- a/copyparty/web/util.js +++ b/copyparty/web/util.js @@ -771,6 +771,7 @@ var tt = (function () { ev(e); window.removeEventListener('scroll', r.hide); clmod(r.tt, 'show'); + clmod(r.tt, 'b'); if (r.el) r.el.removeEventListener('mouseleave', r.hide); };