mirror of https://gitee.com/karson/fastadmin.git
修复fieldlist在初始值为空时,不会绑定fa.event.refreshfieldlist事件
parent
ac2b3ffbff
commit
ab53e00a75
|
|
@ -358,9 +358,6 @@ define(['jquery', 'bootstrap', 'upload', 'validator', 'validator-lang'], functio
|
||||||
placeHolderTemplate: $("<" + tagName + "/>")
|
placeHolderTemplate: $("<" + tagName + "/>")
|
||||||
});
|
});
|
||||||
var textarea = $("textarea[name='" + $(this).data("name") + "']", form);
|
var textarea = $("textarea[name='" + $(this).data("name") + "']", form);
|
||||||
if (textarea.val() == '') {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
var template = $(this).data("template");
|
var template = $(this).data("template");
|
||||||
textarea.on("fa.event.refreshfieldlist", function () {
|
textarea.on("fa.event.refreshfieldlist", function () {
|
||||||
$("[fieldlist-item]", container).remove();
|
$("[fieldlist-item]", container).remove();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue