sync thumbed state with list view

This commit is contained in:
Til Schmitter 2026-05-09 10:30:10 +02:00
parent 89600c422c
commit 9eaf02f012

View file

@ -6481,8 +6481,9 @@ var thegrid = (function () {
var imgs = QSA('#ggrid>a img');
for (var a = 0, aa = imgs.length; a < aa; a++) {
if(imgs[a].complete)
clmod(imgs[a].parentElement.parentElement, 'thumbed', true)
if(imgs[a].complete){
set_loaded(imgs[a].parentElement.parentElement);
}
}
var chks = QSA('.gselchk');
@ -6663,17 +6664,29 @@ var thegrid = (function () {
return r;
})();
function th_onload(el) {
clmod(el.parentElement.parentElement, 'thumbed', true)
set_loaded(el.parentElement.parentElement)
el.style.position = 'static'
el.style.opacity = '1'
el.style.height = '';
el.style.height = ''
el.previousSibling.style.display =
el.previousSibling.previousSibling.style.display =
'none'
}
function set_loaded(el) {
clmod(el, 'thumbed', true)
var a = el.getAttribute('ref')
if(a){
var b = ebi(a)
if(b){
var c = b.closest('tr')
if(c)
clmod(c, 'thumbed', true)
}
}
}
function tree_scrollto(e) {
ev(e);