Merge pull request #98 from finist/patch-1
before and after remove triggers not work when fields existing
This commit is contained in:
commit
58f538f495
|
@ -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