From 14aab62f3255dbb4ac4260a31aae734d817be841 Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 27 Sep 2021 20:55:05 +0200 Subject: [PATCH] fix current-directory hilight --- copyparty/web/browser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 3bca8317..23d23fdd 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -3228,12 +3228,12 @@ var treectl = (function () { } function reload_tree() { - var cdir = get_evpath(), + var cdir = get_vpath(), links = QSA('#treeul a+a'), nowrap = QS('#tree.nowrap') && QS('#hovertree.on'); for (var a = 0, aa = links.length; a < aa; a++) { - var href = links[a].getAttribute('href'); + var href = uricom_dec(links[a].getAttribute('href'))[0]; links[a].setAttribute('class', href == cdir ? 'hl' : ''); links[a].onclick = treego; links[a].onmouseenter = nowrap ? menter : null;