Improved readme slightly.

This commit is contained in:
nathanvda 2011-04-25 00:58:37 +02:00
parent cebcb21242
commit 2cbc649187
1 changed files with 9 additions and 0 deletions

View File

@ -124,6 +124,15 @@ It takes four parameters:
Optionally you could also leave out the name and supply a block that is captured to give the name (if you want to do something more complicated).
There is an option to add a callback on insertion. The callback can be added as follows:
$("#todo_tasks a.add_fields").
data("insertion-callback",
function() {
$(this).find("textarea").autoResize({extraSpace:0}).change();
});
### link_to_remove_association
This function will add a link to your markup that will, when clicked, dynamically remove the surrounding partial form.