mirror of
https://github.com/9001/copyparty.git
synced 2026-06-18 20:22:27 -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;
|
||||
}
|
||||
.hl {
|
||||
width: calc(100% - 4.5em);
|
||||
width: calc(100% - 4.7em);
|
||||
}
|
||||
.hl::after {
|
||||
content: "";
|
||||
|
|
@ -5543,6 +5543,9 @@ html.fy {
|
|||
background: none;
|
||||
border-color: transparent;
|
||||
}
|
||||
#doc {
|
||||
background: var(--bg);
|
||||
}
|
||||
}
|
||||
html.f.unfun {
|
||||
#ops a {
|
||||
|
|
|
|||
|
|
@ -6405,6 +6405,7 @@ window.thegrid = (function () {
|
|||
return;
|
||||
|
||||
var ths = QSA('#ggrid>a');
|
||||
var anysel = false;
|
||||
|
||||
for (var a = 0, aa = ths.length; a < aa; a++) {
|
||||
var ref = ths[a].getAttribute('ref');
|
||||
|
|
@ -6414,7 +6415,10 @@ window.thegrid = (function () {
|
|||
ths[a].className = cl;
|
||||
|
||||
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'];
|
||||
|
|
@ -6427,6 +6431,9 @@ window.thegrid = (function () {
|
|||
ebi(sp[a]).click();
|
||||
};
|
||||
})(a);
|
||||
|
||||
r.tempsel = TOUCH && anysel;
|
||||
clmod(ebi('gridsel'), 'temp', r.tempsel);
|
||||
};
|
||||
|
||||
r.tippen = function () {
|
||||
|
|
|
|||
Loading…
Reference in a new issue