Understood, I'm planning to submit a PR to enhance the destroy checkboxes with buttons that hide the fieldset, maybe we can revisit the conversation then?

On Sun, Nov 3, 2013 at 9:19 PM, Sean Linsley <notifications@github.com>
wrote:

>> @@ -0,0 +1,38 @@
>> +$ ->
>> +  # Provides a before-removal hook:
>> +  # $ ->
>> +  #   # This is a good place to tear down JS plugins to prevent memory leaks.
>> +  #   $(document).on 'has_many_remove:before', '.has_many', (e, fieldset)->
>> +  #     fieldset.do_jquery_stuff_before_removal()
>> +  #
>> +  $(document).on 'click', 'a.button.has_many_remove', (e)->
>> +    e.preventDefault()
>> +    parent    = $(@).closest '.has_many'
>> +    to_remove = parent.children 'fieldset:last'
> Yeah, I actually just added that right as you made this comment :)
> I'm hesitant to add that to the before removal hook, because we don't have a mirrored hook for has_many records that are already persisted in the database.
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/gregbell/active_admin/pull/2645/files#r7393292