From 3b8e76182a4cea1acc5429b4f998befd53388d91 Mon Sep 17 00:00:00 2001 From: Anyon Date: Tue, 22 Feb 2022 11:31:19 +0800 Subject: [PATCH] Update admin.js --- public/static/admin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/static/admin.js b/public/static/admin.js index c65d1b593..f70564933 100644 --- a/public/static/admin.js +++ b/public/static/admin.js @@ -573,7 +573,7 @@ $(function () { $.fn.uploadOneImage = function () { return this.each(function () { if ($(this).data('inited')) return true; else $(this).data('inited', true); - var $in = $(this), $bt = $('').data('input', this); + var $in = $(this), $bt = $('').data('input', this); $bt.attr('data-size', $in.data('size') || 0).attr('data-type', $in.data('type') || 'png,jpg,gif').find('span').on('click', function (event, index) { index = $(this).index(); event.stopPropagation();