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:
parent
c798ba2ecc
commit
5bb14ab1d3
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Reference in New Issue