View | Details | Raw Unified | Return to bug 28180
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-3 / +4 lines)
Lines 1403-1421 Link Here
1403
            // Loop over each container in the template which contains covers
1403
            // Loop over each container in the template which contains covers
1404
            $(".cover-slider").each(function( index ){
1404
            $(".cover-slider").each(function( index ){
1405
                var lightbox_descriptions = [];
1405
                var lightbox_descriptions = [];
1406
                var first_shown = 0;
1406
                $(this).find(".cover-image").each( function( index ){
1407
                $(this).find(".cover-image").each( function( index ){
1407
                    var div = $(this);
1408
                    var div = $(this);
1408
                    // Find the image in the container
1409
                    // Find the image in the container
1409
                    var img = div.find("img")[0];
1410
                    var img = div.find("img")[0];
1410
                    if( img && $(img).length > 0 ){
1411
                    if( img && $(img).length > 0 ){
1411
                        var description = "";
1412
                        var description = "";
1412
                        if( (( img.complete != null && !img.complete) || img.naturalHeight == 0 ) && div.attr("id") != "googlejacket-coverimg" ){
1413
                        if( img.naturalHeight == 0 && div.attr("id") != "googlejacket-coverimg" ){
1413
                            // No image loaded in the container. Remove the slide
1414
                            // No image loaded in the container. Remove the slide
1414
                            div.remove();
1415
                            div.remove();
1415
                        } else {
1416
                        } else {
1416
                            // All slides start hidden. If this is the first one, show it.
1417
                            // All slides start hidden. If this is the first one, show it.
1417
                            if( index == 0 ){
1418
                            if( first_shown == 0 ){
1418
                                div.show();
1419
                                div.show();
1420
                                first_shown = 1;
1419
                            }
1421
                            }
1420
                            // Check if Amazon image is present
1422
                            // Check if Amazon image is present
1421
                            if ( div.attr("id") == "amazon-bookcoverimg"  ) {
1423
                            if ( div.attr("id") == "amazon-bookcoverimg"  ) {
1422
- 

Return to bug 28180