Fix compat with the latest jquery

Stolen^w borrowed from https://github.com/keegnotrub/jquery.fancyzoom/issues/3#issue-388966769
master
jvoisin 6 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) { if (pImage.src !== href) {
preloading = true; preloading = true;
pImage = new Image(); pImage = new Image();
$(pImage).load(function() { $(pImage).on('load', function() {
preloading = false; preloading = false;
}); });
pImage.src = href; pImage.src = href;

Loading…
Cancel
Save