Nested_form assumes that the element wrapping the blueprint has class="fields" by default. As this may conflict with existing css, the following may be used to add a custom wrapper selector:
If no custom selector is given, ".fields" is used. After rendering the blueprint, addFields or its prototype equivalent adds a data-nested-wrapper attribute to the wrapper so the remove links can find the wrapper, as they did with ".fields" previously.
Implemented for the prototype and jquery variants along with specs.
Readme is updated, too.
Nested_form assumes that the element wrapping the blueprint has
class="fields"
by default. As this may conflict with existing css, the following may be used to add a custom wrapper selector:If no custom selector is given, ".fields" is used. After rendering the blueprint, addFields or its prototype equivalent adds a
data-nested-wrapper
attribute to the wrapper so the remove links can find the wrapper, as they did with ".fields" previously.Implemented for the prototype and jquery variants along with specs. Readme is updated, too.