Skip to content

Commit f8fbad8

Browse files
committed
Merge branch 'master' of github.com:nathanvda/cocoon into new_id_with_ajax
2 parents 07a4e8a + 1e0212f commit f8fbad8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ E.g. in your `ProjectsController`:
109109
Cocoon's default configuration requires `link_to_add_association` and associated partials to
110110
be properly wrapped with elements. The examples below illustrate simple layouts.
111111

112-
Please note these examples rely on the `haml` gem (instead of the default `erb` views).
112+
Please note these examples rely on the `haml` gem ([click here](https://github.com/nathanvda/cocoon/wiki/ERB-examples) for the default `erb` views).
113113

114114
### Formtastic
115115

app/assets/javascripts/cocoon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188

189189
setTimeout(function() {
190190
if ($this.hasClass('dynamic')) {
191-
node_to_delete.remove();
191+
node_to_delete.detach();
192192
} else {
193193
$this.prev("input[type=hidden]").val("1");
194194
node_to_delete.hide();

0 commit comments

Comments
 (0)