From f4fa75f808c68438c522536d953c00c410217de0 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 28 May 2019 01:13:02 +0200 Subject: [PATCH] Fix compat with the latest jquery Stolen^w borrowed from https://github.com/keegnotrub/jquery.fancyzoom/issues/3#issue-388966769 --- airsonic-main/src/main/webapp/script/jquery.fancyzoom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airsonic-main/src/main/webapp/script/jquery.fancyzoom.js b/airsonic-main/src/main/webapp/script/jquery.fancyzoom.js index 26c866cf..c5a6474c 100644 --- a/airsonic-main/src/main/webapp/script/jquery.fancyzoom.js +++ b/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;