mirror of
https://github.com/9001/copyparty.git
synced 2026-06-21 21:52:25 -06:00
fix tempsel state when navigating folders
This commit is contained in:
parent
5f165adcff
commit
26c173e5d7
|
|
@ -5296,7 +5296,7 @@ html.f {
|
||||||
line-height: 1.45em;
|
line-height: 1.45em;
|
||||||
}
|
}
|
||||||
.hl {
|
.hl {
|
||||||
width: calc(100% - 4.5em);
|
width: calc(100% - 4.7em);
|
||||||
}
|
}
|
||||||
.hl::after {
|
.hl::after {
|
||||||
content: "";
|
content: "";
|
||||||
|
|
@ -5543,6 +5543,9 @@ html.fy {
|
||||||
background: none;
|
background: none;
|
||||||
border-color: transparent;
|
border-color: transparent;
|
||||||
}
|
}
|
||||||
|
#doc {
|
||||||
|
background: var(--bg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
html.f.unfun {
|
html.f.unfun {
|
||||||
#ops a {
|
#ops a {
|
||||||
|
|
|
||||||
|
|
@ -6405,6 +6405,7 @@ window.thegrid = (function () {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var ths = QSA('#ggrid>a');
|
var ths = QSA('#ggrid>a');
|
||||||
|
var anysel = false;
|
||||||
|
|
||||||
for (var a = 0, aa = ths.length; a < aa; a++) {
|
for (var a = 0, aa = ths.length; a < aa; a++) {
|
||||||
var ref = ths[a].getAttribute('ref');
|
var ref = ths[a].getAttribute('ref');
|
||||||
|
|
@ -6414,7 +6415,10 @@ window.thegrid = (function () {
|
||||||
ths[a].className = cl;
|
ths[a].className = cl;
|
||||||
|
|
||||||
var chk = ths[a].getElementsByTagName('input')[0];
|
var chk = ths[a].getElementsByTagName('input')[0];
|
||||||
if(chk) chk.checked = cl.match(/\bsel\b/);
|
if(chk) {
|
||||||
|
chk.checked = cl.match(/\bsel\b/);
|
||||||
|
anysel = anysel || chk.checked;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var sp = ['unsearch', 'moar'];
|
var sp = ['unsearch', 'moar'];
|
||||||
|
|
@ -6427,6 +6431,9 @@ window.thegrid = (function () {
|
||||||
ebi(sp[a]).click();
|
ebi(sp[a]).click();
|
||||||
};
|
};
|
||||||
})(a);
|
})(a);
|
||||||
|
|
||||||
|
r.tempsel = TOUCH && anysel;
|
||||||
|
clmod(ebi('gridsel'), 'temp', r.tempsel);
|
||||||
};
|
};
|
||||||
|
|
||||||
r.tippen = function () {
|
r.tippen = function () {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue