Implemented resizing of thumbnails for PDF attachments

SVN revision: 2032
This commit is contained in:
Stefan Ritt 2008-02-06 14:44:31 +00:00
parent 9e9ae3405e
commit 6c46ab832e

View File

@ -35,11 +35,18 @@ function im(id, thumb, image, cmd)
xmlHttp.onreadystatechange = function() xmlHttp.onreadystatechange = function()
{ {
if(xmlHttp.readyState == 4) if(xmlHttp.readyState == 4) {
{ if (xmlHttp.responseText != "" &&
if (xmlHttp.responseText != "") xmlHttp.responseText.search(/Fonts/) == -1)
alert(xmlHttp.responseText); alert(xmlHttp.responseText);
document.getElementById(id).src = thumb+'?'+dummy; o = document.getElementById(id);
if (o)
o.src = thumb+'?'+dummy;
for (i=0 ; i<8 ; i++) {
o = document.getElementById(id+'_'+i);
if (o)
o.src = thumb+'-'+i+'.png'+'?'+dummy;
}
dummy++; dummy++;
} }
} }