You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My template include some more complex add/delete formset links already
inside formset so there is no need to add them to the end. A simple CSS
class added to the anchor tag is not enough for my use.
The attached patch adds an option called autoAddLinks that you can set to
false to prevent any links being added.
Thanks for the patch benneth. If you don't mind my asking, how do your add/remove links
work currently? How did you wire them up to the appropriate methods that add and remove
a form instance? Also, do you perform any additional tasks in the click event handlers?
Well 'Add' is always there not matter what and your script already automatically
hides the 'Delete' with the correct class on it so that is taking care of.
So the add and delete links are just inside my formset. They are cloned with the
rest of the formset.
My issue was that I need to wrap a div around the anchor tag to do some more advanced
formatting that couldn't be solved with css.
I do do some additional tasks on add using the 'added' callback, but not on the click
handler.
From benn...@gmail.com on February 20, 2010 19:55:37
My template include some more complex add/delete formset links already
inside formset so there is no need to add them to the end. A simple CSS
class added to the anchor tag is not enough for my use.
The attached patch adds an option called autoAddLinks that you can set to
false to prevent any links being added.
Attachment: jquery.formset-add_option_to_not_auto_add_adddel_links.patch
Original issue: http://code.google.com/p/django-dynamic-formset/issues/detail?id=6
The text was updated successfully, but these errors were encountered: