]> git.koha-community.org Git - koha.git/commit
Bug 28180: Correctly guess if images have been loaded
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 11 Aug 2021 14:35:42 +0000 (16:35 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 21 Oct 2021 10:24:04 +0000 (12:24 +0200)
commit819095aa219cfc721f2892fcc3b8bc12c10542db
tree63de65c50328f2a41ae00e0aa14102804b263ca9
parent974524b2e52b150493e0d25a53ef9634d12a8ff4
Bug 28180: Correctly guess if images have been loaded

window.load won't assure us that the images loaded using JS code are
correctly loaded.

This patch adds a flag to the different providers when the images are
fully loaded.

Note that the img.naturalHeight check is not working for google jackets
and is actually not needed (test with a bib record with and without
google jacket and confirm that it's working as expected).

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/opac-tmpl/bootstrap/css/opac-rtl.css
koha-tmpl/opac-tmpl/bootstrap/css/opac.css
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt
koha-tmpl/opac-tmpl/bootstrap/js/coce.js
koha-tmpl/opac-tmpl/bootstrap/js/google-jackets.js
koha-tmpl/opac-tmpl/bootstrap/js/openlibrary.js