mirror of
https://github.com/9001/copyparty.git
synced 2026-06-20 21:22:26 -06:00
move some of the thumbed logic to css
This commit is contained in:
parent
bb48914d14
commit
2ed8534698
|
|
@ -1026,6 +1026,10 @@ tr.play td:nth-child(1) a {
|
||||||
.th_ext {
|
.th_ext {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
img {
|
||||||
|
position: static;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.sel .gselchk {
|
.sel .gselchk {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
||||||
|
|
@ -6729,14 +6729,12 @@ window.thegrid = (function () {
|
||||||
|
|
||||||
function th_onload(el) {
|
function th_onload(el) {
|
||||||
set_loaded(el, true, false)
|
set_loaded(el, true, false)
|
||||||
el.style.position = 'static'
|
|
||||||
el.style.opacity = '1'
|
|
||||||
el.style.height = ''
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function set_loaded(el, state, dblcheck) {
|
function set_loaded(el, state, dblcheck) {
|
||||||
if(state && dblcheck) {
|
if(state && dblcheck) {
|
||||||
testImage(el)
|
testImage(el);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
var p = el.parentElement.parentElement
|
var p = el.parentElement.parentElement
|
||||||
clmod(p, 'thumbed', state)
|
clmod(p, 'thumbed', state)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue