From 2cbc64918772e961dcafed82425654ba6b4e2a46 Mon Sep 17 00:00:00 2001 From: nathanvda Date: Mon, 25 Apr 2011 00:58:37 +0200 Subject: [PATCH] Improved readme slightly. --- README.markdown | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.markdown b/README.markdown index 337f21f..b29d126 100644 --- a/README.markdown +++ b/README.markdown @@ -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.