{"action":"created","issue":{"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3442","labels_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3442/labels{/name}","comments_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3442/comments","events_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3442/events","html_url":"https://github.com/sonata-project/SonataAdminBundle/issues/3442","id":119199272,"number":3442,"title":"Admin.js trigger sonata-collection-item-deleted call before remove element","user":{"login":"tim96","id":12379114,"avatar_url":"https://avatars.githubusercontent.com/u/12379114?v=3","gravatar_id":"","url":"https://api.github.com/users/tim96","html_url":"https://github.com/tim96","followers_url":"https://api.github.com/users/tim96/followers","following_url":"https://api.github.com/users/tim96/following{/other_user}","gists_url":"https://api.github.com/users/tim96/gists{/gist_id}","starred_url":"https://api.github.com/users/tim96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tim96/subscriptions","organizations_url":"https://api.github.com/users/tim96/orgs","repos_url":"https://api.github.com/users/tim96/repos","events_url":"https://api.github.com/users/tim96/events{/privacy}","received_events_url":"https://api.github.com/users/tim96/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-27T13:49:26Z","updated_at":"2015-11-30T05:54:50Z","closed_at":null,"body":"In Admin.js exist this code:\r\n```\r\njQuery(subject).on('click', '.sonata-collection-delete', function(event) {\r\n            Admin.stopEvent(event);\r\n\r\n            jQuery(this).trigger('sonata-collection-item-deleted');\r\n\r\n            jQuery(this).closest('.sonata-collection-row').remove();\r\n        });\r\n```\r\n@OskarStark hello. Can we add trigger after element was remove successfully? "},"comment":{"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/comments/160524775","html_url":"https://github.com/sonata-project/SonataAdminBundle/issues/3442#issuecomment-160524775","issue_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3442","id":160524775,"user":{"login":"OskarStark","id":995707,"avatar_url":"https://avatars.githubusercontent.com/u/995707?v=3","gravatar_id":"","url":"https://api.github.com/users/OskarStark","html_url":"https://github.com/OskarStark","followers_url":"https://api.github.com/users/OskarStark/followers","following_url":"https://api.github.com/users/OskarStark/following{/other_user}","gists_url":"https://api.github.com/users/OskarStark/gists{/gist_id}","starred_url":"https://api.github.com/users/OskarStark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OskarStark/subscriptions","organizations_url":"https://api.github.com/users/OskarStark/orgs","repos_url":"https://api.github.com/users/OskarStark/repos","events_url":"https://api.github.com/users/OskarStark/events{/privacy}","received_events_url":"https://api.github.com/users/OskarStark/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T05:54:50Z","updated_at":"2015-11-30T05:54:50Z","body":"why not, can you provide a PR?"}}