diff --git a/public/static/admin.js b/public/static/admin.js index 097553ff7..0564c0cfb 100644 --- a/public/static/admin.js +++ b/public/static/admin.js @@ -588,7 +588,7 @@ $(function () { return this.each(function () { if ($(this).data('inited')) return true; else $(this).data('inited', true); var $in = $(this), $bt = $(''), imgs = this.value ? this.value.split('|') : [] - $in.after($bt.attr('data-size', $in.data('size') || 0).attr('data-type', $in.data('type') || 'png,jpg,gif').uploadFile(function (src) { + $in.after($bt.attr('data-size', $in.data('size') || 0).attr('data-type', $in.data('type') || 'png,jpg,gif,jpeg').uploadFile(function (src) { imgs.push(src), $in.val(imgs.join('|')), showImageContainer([src]); })), (imgs.length > 0 && showImageContainer(imgs));