sonata-project/SonataDoctrineORMAdminBundle — pull request #33 by snc (2012-01-16 10:27:43+00:00)
Title: Fixed the triggering of the "sonata.add_element" event.

The call to `jQuery('#field_container_{{ id }}').replaceWith(html)` removes all previously bound events so the `.trigger()` function will do nothing.

This commit moves the triggering from `#field_container_{{ id }}` to `#sonata-ba-field-container-{{ id }}` which in fact is the element used [here](https://github.com/sonata-project/SonataDoctrineORMAdminBundle/blob/master/Resources/views/CRUD/edit_orm_one_to_many.html.twig#L118).