From abc0e08bbcb45436c5bd0a5b96721ce4b52f2029 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. --- 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 95669a0..daa21b7 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.7.4