Skip to content

Commit

Permalink
Merge pull request sonata-project#1289 from EmmanuelVella/delete-event
Browse files Browse the repository at this point in the history
Trigger event before removing element
  • Loading branch information
rande committed Jan 9, 2014
2 parents 79c600a + 5cc55eb commit 9376848
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Resources/public/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ var Admin = {
jQuery(subject).on('click', '.sonata-collection-delete', function(event) {
Admin.stopEvent(event);

jQuery(this).closest('.sonata-collection-row').remove();

jQuery(this).trigger('sonata-collection-item-deleted');

jQuery(this).closest('.sonata-collection-row').remove();
});
},

Expand Down

0 comments on commit 9376848

Please sign in to comment.