Commit acc55623 authored by jonnybradley's avatar jonnybradley

[FIX] Function adjustThumbnails() was in the wrong file (my fault i think - apologies)

parent 3aee06c5
......@@ -198,35 +198,4 @@ function addEvent(elm, evType, fn, useCapture)
}
}
function adjustThumbnails() {
var i,j,h = 0;
var t = document.getElementById("thumbnails").childNodes;
for ( i = 0; i < t.length; i++ ) {
if ( t[i].className == "thumbnailcontener" ) {
var t2 = t[i].childNodes;
for ( j = 0; j < t2.length; j++ ) {
if ( t2[j].className == "thumbnail" ) {
t2[j].style.height = "100%";
t2[j].style.overflow = "visible";
}
}
if ( t[i].offsetHeight >= h ) {
h = t[i].offsetHeight;
t[i].style.height = h+"px";
} else if ( t[i].offsetHeight < h ) {
t[i].style.height = h+"px";
}
}
}
for ( i = 0; i < t.length; i++ ) {
if ( t[i].className == "thumbnailcontener" ) {
if ( t[i].offsetHeight <= h ) {
t[i].style.height = h+"px";
} else {
break;
}
}
}
}
// --- end of sorttable ---
......@@ -1622,3 +1622,37 @@ function hidedisabled(divid,value) {
}
}
/* for filegals */
function adjustThumbnails() {
var i,j,h = 0;
var t = document.getElementById("thumbnails").childNodes;
for ( i = 0; i < t.length; i++ ) {
if ( t[i].className == "thumbnailcontener" ) {
var t2 = t[i].childNodes;
for ( j = 0; j < t2.length; j++ ) {
if ( t2[j].className == "thumbnail" ) {
t2[j].style.height = "100%";
t2[j].style.overflow = "visible";
}
}
if ( t[i].offsetHeight >= h ) {
h = t[i].offsetHeight;
t[i].style.height = h+"px";
} else if ( t[i].offsetHeight < h ) {
t[i].style.height = h+"px";
}
}
}
for ( i = 0; i < t.length; i++ ) {
if ( t[i].className == "thumbnailcontener" ) {
if ( t[i].offsetHeight <= h ) {
t[i].style.height = h+"px";
} else {
break;
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment