mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update admin.js
This commit is contained in:
parent
7d778dc406
commit
9326343474
@ -613,7 +613,7 @@ $(function () {
|
||||
$.fn.uploadOneImage = function () {
|
||||
return this.each(function () {
|
||||
if (this.dataset.inited) return; else this.dataset.inited = 'true';
|
||||
var $bt = $('<div class="uploadimage"><span><a data-file class="layui-icon layui-icon-upload-drag"></a><i class="layui-icon layui-icon-search"></i><i class="layui-icon layui-icon-close"></i></span><span data-file></span></div>');
|
||||
var $bt = $('<div class="uploadimage"><span><a data-file class="layui-icon layui-icon-upload-drag"></a><i class="layui-icon layui-icon-search"></i><i class="layui-icon layui-icon-close"></i></span><span data-file="image"></span></div>');
|
||||
var $in = $(this).on('change', function () {
|
||||
if (this.value) $bt.css('backgroundImage', 'url(' + encodeURI(this.value) + ')');
|
||||
}).after($bt).trigger('change');
|
||||
|
Loading…
x
Reference in New Issue
Block a user