mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-14 20:33:48 +00:00
Implemented resizing of thumbnails for PDF attachments
SVN revision: 2032
This commit is contained in:
parent
9e9ae3405e
commit
6c46ab832e
@ -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++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user