mirror of https://gitee.com/karson/fastadmin.git
Pre Merge pull request !423 from 码龍/uploadDiyPreview
commit
9531748914
|
|
@ -367,6 +367,9 @@ define(['jquery', 'bootstrap', 'dropzone', 'template'], function ($, undefined,
|
|||
var data = {url: j, fullurl: Fast.api.cdnurl(j), data: $(that).data(), key: i, index: i, value: value, row: value, suffix: suffix};
|
||||
var html = tpl ? Template(tpl, data) : Template.render(Upload.config.previewtpl, data);
|
||||
$("#" + preview_id).append(html);
|
||||
require(['form'], function (Form) {
|
||||
Form.api.bindevent($("#" + preview_id));
|
||||
});
|
||||
});
|
||||
refresh($("#" + preview_id).data("name"));
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue