mirror of
https://github.com/9001/copyparty.git
synced 2026-01-12 07:44:08 -07:00
toggle unlist with dotfiles-button
This commit is contained in:
parent
af3f777ec9
commit
e55e5a4585
|
|
@ -7008,6 +7008,8 @@ var treectl = (function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
r.prunetree = function (res) {
|
r.prunetree = function (res) {
|
||||||
|
if (r.dots)
|
||||||
|
return;
|
||||||
var ptn = new RegExp(res.unlist);
|
var ptn = new RegExp(res.unlist);
|
||||||
var els = QSA('#treeul li>a+a');
|
var els = QSA('#treeul li>a+a');
|
||||||
for (var a = els.length - 1; a >= 0; a--)
|
for (var a = els.length - 1; a >= 0; a--)
|
||||||
|
|
@ -7407,7 +7409,7 @@ var treectl = (function () {
|
||||||
memo_dk(top, m[1]);
|
memo_dk(top, m[1]);
|
||||||
|
|
||||||
r.lsc = res;
|
r.lsc = res;
|
||||||
if (res.unlist) {
|
if (res.unlist && !r.dots) {
|
||||||
var ptn = new RegExp(res.unlist);
|
var ptn = new RegExp(res.unlist);
|
||||||
for (var a = nodes.length - 1; a >= 0; a--)
|
for (var a = nodes.length - 1; a >= 0; a--)
|
||||||
if (ptn.exec(uricom_dec(nodes[a].href.split('?')[0])))
|
if (ptn.exec(uricom_dec(nodes[a].href.split('?')[0])))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue