|
|
@ -78,6 +78,12 @@ |
|
|
|
// There is also a result.file property which has the escaped version |
|
|
|
// There is also a result.file property which has the escaped version |
|
|
|
if (thumbnails) { |
|
|
|
if (thumbnails) { |
|
|
|
newImg.src = result.file; |
|
|
|
newImg.src = result.file; |
|
|
|
|
|
|
|
if(result.height >= result.width) |
|
|
|
|
|
|
|
newImg.height = minHeight; |
|
|
|
|
|
|
|
else{ |
|
|
|
|
|
|
|
newImg.width = minWidth; |
|
|
|
|
|
|
|
//newImg.style.margin = (120 - result.height)/2 + "px 0"; |
|
|
|
|
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
newImg.src = "./images/thumbnail_icon.png"; |
|
|
|
newImg.src = "./images/thumbnail_icon.png"; |
|
|
|
} |
|
|
|
} |
|
|
|