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() {
|
function tree_scrollto() {
|
||||||
var act = QS('#treeul a.hl');
|
var act = QS('#treeul a.hl'),
|
||||||
if (!act)
|
ul = act ? act.offsetParent : null;
|
||||||
|
|
||||||
|
if (!ul)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var ctr = ebi('tree'),
|
var ctr = ebi('tree'),
|
||||||
ul = act.offsetParent,
|
|
||||||
em = parseFloat(getComputedStyle(act).fontSize),
|
em = parseFloat(getComputedStyle(act).fontSize),
|
||||||
top = act.offsetTop + ul.offsetTop,
|
top = act.offsetTop + ul.offsetTop,
|
||||||
min = top - 11 * em,
|
min = top - 11 * em,
|
||||||
|
@ -2306,7 +2307,12 @@ var treectl = (function () {
|
||||||
var fun = treectl.dir_cb;
|
var fun = treectl.dir_cb;
|
||||||
if (fun) {
|
if (fun) {
|
||||||
treectl.dir_cb = null;
|
treectl.dir_cb = null;
|
||||||
fun();
|
try {
|
||||||
|
fun();
|
||||||
|
}
|
||||||
|
catch (ex) {
|
||||||
|
console.log("dir_cb failed", ex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue