Skip to content

Commit 1e0212f

Browse files
authored
Merge pull request #493 from entretechno/jquery-detach
Use .detach() instead of .remove() for removing dynamic assocs
2 parents 05435fb + 37ae85f commit 1e0212f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/assets/javascripts/cocoon.js

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

115115
setTimeout(function() {
116116
if ($this.hasClass('dynamic')) {
117-
node_to_delete.remove();
117+
node_to_delete.detach();
118118
} else {
119119
$this.prev("input[type=hidden]").val("1");
120120
node_to_delete.hide();

0 commit comments

Comments
 (0)