mirror of https://gitee.com/karson/fastadmin.git
parent
eaa1832852
commit
c952991d46
|
|
@ -370,6 +370,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 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);
|
var html = tpl ? Template(tpl, data) : Template.render(Upload.config.previewtpl, data);
|
||||||
$("#" + preview_id).append(html);
|
$("#" + preview_id).append(html);
|
||||||
|
require(['form'], function (Form) {
|
||||||
|
Form.api.bindevent($("#" + preview_id));
|
||||||
|
});
|
||||||
});
|
});
|
||||||
refresh($("#" + preview_id).data("name"));
|
refresh($("#" + preview_id).data("name"));
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue