diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-imageviewer.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-imageviewer.tt index 788c25ad8a..4bc57d82b6 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-imageviewer.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-imageviewer.tt @@ -87,7 +87,7 @@
[% FOREACH image IN images %] - + [% IF loop.first %] Thumbnail [% ELSE %] @@ -113,6 +113,13 @@ $(document).ready(function(){ $("#largeCoverImg").attr("src","[% interface | html %]/[% theme | html %]/images/loading.gif"); showCover([% imagenumber | html %]); + $("a.cover_thumbnail").on('click',function(){ + let imagenumber = this.dataset.imagenumber; + if (imagenumber){ + showCover(imagenumber); + } + return false; + }); }); function showCover(img) {