소스 검색

Trigger event before removing element

Emmanuel Vella 12 년 전
부모
커밋
5cc55ebd55
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Resources/public/base.js

+ 2 - 2
Resources/public/base.js

@@ -154,9 +154,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();
         });
     },