From 47e48f3ade4eba7fc12cf39c865b366e092a73f2 Mon Sep 17 00:00:00 2001 From: Maryse Simard Date: Fri, 4 Jan 2019 09:18:33 -0500 Subject: [PATCH] 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 Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/js/coce.js | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/intranet-tmpl/js/coce.js b/koha-tmpl/intranet-tmpl/js/coce.js index 95669a0f2e..daa21b72d5 100644 --- a/koha-tmpl/intranet-tmpl/js/coce.js +++ b/koha-tmpl/intranet-tmpl/js/coce.js @@ -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); }); -- 2.39.2