Open ipkes opened 9 years ago
I have a problem with complicated form, which can contain several nested forms (which can contain height depth level). Field data-blueprint contain excess fields, from another nested fields.
data-blueprint
window.nestedFormEvents.insertFields = function(content, assoc, link) { - var target = $(link).data('target') + var target = $(link).data('target'), + tmp = '<div class="fields">'; + $(content).children() + .filter('input[name*='+assoc+'], div[class*='+assoc+'], div[class=fields], a[data-association='+assoc+']') + .each(function(i, element){ tmp += element.outerHTML; }) + content = tmp + '</div>' if (target) { return $(content).appendTo($(target)); } else { return $(content).insertBefore(link); } }
It's works for me, and may be helps you.
I have a problem with complicated form, which can contain several nested forms (which can contain height depth level). Field
data-blueprint
contain excess fields, from another nested fields.It's works for me, and may be helps you.