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();