Bug 18421: (follow-up) Center image in results table

Adds the "thumbnail" class to the image to have it centered.

Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Maryse Simard 2019-01-04 09:18:33 -05:00 committed by Martin Renvoize
parent 4ecc88b259
commit 47e48f3ade
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ KOHA.coce = {
$("[id^=coce-thumbnail]."+id).each(function() {
var img = document.createElement("img");
img.src = url;
img.classList.add("thumbnail");
img.title = url; //FIXME: to delete
$(this).html(img);
});