Skip to content

Commit

Permalink
bugfix for activeadmin#2645
Browse files Browse the repository at this point in the history
'doh
  • Loading branch information
seanlinsley committed Nov 4, 2013
1 parent 3db28da commit 18a4b48
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -8,7 +8,7 @@ $ ->
$(document).on 'click', 'a.button.has_many_remove', (e)->
e.preventDefault()
parent = $(@).closest '.has_many'
to_remove = parent.children 'fieldset:last'
to_remove = $(@).closest 'fieldset'

parent.trigger 'has_many_remove:before', [ to_remove ]
to_remove.remove()
Expand Down

0 comments on commit 18a4b48

Please sign in to comment.