From 3d8e8ebda8f70db605014a75ae5015a5407687c6 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 --- 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.11.0