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 <david@davidnind.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 545ff24dd0)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Owen Leonard 2025-03-11 15:07:27 +00:00 committed by Fridolin Somers
parent c798ba2ecc
commit 5bb14ab1d3
1 changed files with 4 additions and 4 deletions

View File

@ -552,9 +552,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).
@ -563,7 +563,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){