From ba0511c6a9a558dc0278d36c0b4479180ece7213 Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 8 Jan 2021 17:22:20 +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 ba8f82523..010043b4b 100644 --- a/public/static/admin.js +++ b/public/static/admin.js @@ -769,8 +769,8 @@ $(function () { $.msg.close(index); }, img.onload = function () { layer.open({ - type: 1, title: false, shadeClose: true, content: $(img), success: function (idx) { - $.msg.close(index), (typeof done === 'function' && done(idx)) + type: 1, title: false, shadeClose: true, content: $(img), success: function ($ele, idx) { + $.msg.close(index), (typeof done === 'function' && done($ele, idx)) }, area: area || '480px', closeBtn: 1, skin: 'layui-layer-nobg', end: function () { document.body.removeChild(img), (typeof close === 'function' && close()) } @@ -882,4 +882,4 @@ $(function () { /*! 系统菜单表单页面初始化 */ $.menu.listen(), $.vali.listen(), $.form.reInit($body); -}); +}); \ No newline at end of file