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