From 23414864118d946ab4e494bc409ac28e501969bd Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 11 Mar 2025 15:07:27 +0000 Subject: [PATCH] Bug 38981: Local cover images failing to load in OPAC search results This patch uncomments some code which was incorrectly left commented after debugging. Signed-off-by: David Nind --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt index 6447d0b3f0..2cfd946085 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -598,9 +598,9 @@ $(coverSlide).find(".cover-image").eq(0).show(); - // if( $(coverSlide).find(".cover-image").length < 1 ){ - // $(coverSlide).remove(); - // } else { + if( $(coverSlide).find(".cover-image").length < 1 ){ + $(coverSlide).remove(); + } else { // This is a suboptimal workaround; we should do this via load, but // the image code is scattered all over now. We come here now after // window load and wait_for_images (so load completed). @@ -609,7 +609,7 @@ if( !this.complete || this.naturalHeight == 0 ) check_complete = 0; }); if( check_complete ) $(coverSlide).removeClass('cover-slides'); - // } + } }); $(".cover-slider").on("click",".cover-nav", function(e){ -- 2.39.5