Fix compat with the latest jquery

Stolen^w borrowed from https://github.com/keegnotrub/jquery.fancyzoom/issues/3#issue-388966769
master
jvoisin 5 years ago
parent c5eb7aa37c
commit f4fa75f808
  1. 2
      airsonic-main/src/main/webapp/script/jquery.fancyzoom.js

@ -101,7 +101,7 @@
if (pImage.src !== href) {
preloading = true;
pImage = new Image();
$(pImage).load(function() {
$(pImage).on('load', function() {
preloading = false;
});
pImage.src = href;

Loading…
Cancel
Save