Update app/assets/javascripts/cocoon.js
This commit is contained in:
parent
4f3fce0e9c
commit
646c036258
@ -70,7 +70,7 @@
|
||||
|
||||
$('.remove_fields.existing').live('click', function(e) {
|
||||
var $this = $(this);
|
||||
var trigger_node = $this.closest(".nested-fields").parent().parent();
|
||||
var trigger_node = $this.closest(".nested-fields").parent();
|
||||
trigger_before_removal_callback(trigger_node);
|
||||
e.preventDefault();
|
||||
$this.prev("input[type=hidden]").val("1");
|
||||
|
Loading…
Reference in New Issue
Block a user