From 7c505b3ec03bb6b5e67189129479072804d8ea3d Mon Sep 17 00:00:00 2001 From: Anyon Date: Tue, 22 Sep 2020 14:45:57 +0800 Subject: [PATCH] Update admin.js --- public/static/admin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/static/admin.js b/public/static/admin.js index be8caa294..1c7ba4c17 100644 --- a/public/static/admin.js +++ b/public/static/admin.js @@ -808,7 +808,7 @@ $(function () { })(code) }; - /*! 图片懒加载转换处理 */ + /*! 图片懒加载处理 */ $(window).on('scroll resize load', function () { var notFoundCount = 0, maxNotFound = 2, screenHeight = $(window).height(); $('[data-lazy-src]:not([data-lazy-loaded])').each(function (src, pos) { @@ -822,8 +822,8 @@ $(function () { }); /*! 图片加载异常处理 */ - document.addEventListener('error', function (e, elem) { - elem = e.target; + document.addEventListener('error', function (event, elem) { + elem = event.target; if (elem.tagName.toLowerCase() === 'img') { elem.src = baseRoot + 'theme/img/404_icon.png'; }