Update app/assets/javascripts/cocoon.js

This commit is contained in:
Nikolay Seskin 2012-10-12 17:54:55 +04:00
parent 4f3fce0e9c
commit 646c036258
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");