Lines 1681-1687
Link Here
|
1681 |
}); |
1681 |
}); |
1682 |
} /* /verify_images */ |
1682 |
} /* /verify_images */ |
1683 |
|
1683 |
|
|
|
1684 |
function wait_for_images(){ |
1685 |
|
1686 |
var loaded = 1; |
1687 |
|
1688 |
[% IF GoogleJackets %] |
1689 |
if ( loaded ) { |
1690 |
loaded = KOHA.Google.done; |
1691 |
} |
1692 |
[% END %] |
1693 |
|
1694 |
[% IF OpenLibraryCovers %] |
1695 |
if ( loaded ) { |
1696 |
loaded = KOHA.OpenLibrary.done; |
1697 |
} |
1698 |
[% END %] |
1699 |
|
1700 |
[% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %] |
1701 |
if ( loaded ) { |
1702 |
loaded = KOHA.coce.done; |
1703 |
} |
1704 |
[% END %] |
1705 |
|
1706 |
[% IF OPACLocalCoverImages %] |
1707 |
if ( loaded ) { |
1708 |
loaded = KOHA.LocalCover.done; |
1709 |
} |
1710 |
[% END %] |
1711 |
|
1712 |
if (!loaded) { |
1713 |
window.setTimeout(wait_for_images, 100); |
1714 |
} |
1715 |
} |
1716 |
|
1684 |
$(window).load(function() { |
1717 |
$(window).load(function() { |
|
|
1718 |
wait_for_images(); |
1685 |
verify_cover_images(); |
1719 |
verify_cover_images(); |
1686 |
}); |
1720 |
}); |
1687 |
|
1721 |
|