fix tempsel state when navigating folders

This commit is contained in:
Til Schmitter 2026-05-17 16:58:22 +02:00
parent 5f165adcff
commit 26c173e5d7
2 changed files with 12 additions and 2 deletions

View file

@ -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 {

View file

@ -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 () {