Merge pull request #98 from finist/patch-1

before and after remove triggers not work when fields existing
This commit is contained in:
Nathan Van der Auwera 2012-10-12 07:19:15 -07:00
commit 58f538f495
1 changed files with 1 additions and 1 deletions

View File

@ -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");