mirror of
https://github.com/9001/copyparty.git
synced 2025-08-19 01:42:20 -06:00
fix audio player edgecase (continue into next folder with sidebar closed)
This commit is contained in:
parent
f7dbd95a54
commit
7e0ef03a1e
|
@ -1714,12 +1714,13 @@ var thegrid = (function () {
|
|||
|
||||
|
||||
function tree_scrollto() {
|
||||
var act = QS('#treeul a.hl');
|
||||
if (!act)
|
||||
var act = QS('#treeul a.hl'),
|
||||
ul = act ? act.offsetParent : null;
|
||||
|
||||
if (!ul)
|
||||
return;
|
||||
|
||||
var ctr = ebi('tree'),
|
||||
ul = act.offsetParent,
|
||||
em = parseFloat(getComputedStyle(act).fontSize),
|
||||
top = act.offsetTop + ul.offsetTop,
|
||||
min = top - 11 * em,
|
||||
|
@ -2306,8 +2307,13 @@ var treectl = (function () {
|
|||
var fun = treectl.dir_cb;
|
||||
if (fun) {
|
||||
treectl.dir_cb = null;
|
||||
try {
|
||||
fun();
|
||||
}
|
||||
catch (ex) {
|
||||
console.log("dir_cb failed", ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function reload_tree() {
|
||||
|
|
Loading…
Reference in a new issue