Skip to content

Commit

Permalink
Merge pull request #21772 from totten/master-preview-dialog
Browse files Browse the repository at this point in the history
(dev/mail#83) message_admin - Cleanup "Preview" dialogs (properly)
  • Loading branch information
eileenmcnaughton authored Oct 9, 2021
2 parents 3daebb7 + f618632 commit 7249a8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ext/message_admin/ang/crmMsgadm/Edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,9 @@
});

}
$rootScope.$on('previewMsgTpl', onPreview);
$rootScope.$on('$destroy', function (){
$rootScope.$off('previewMsgTpl', onPreview);
var unreg = $rootScope.$on('previewMsgTpl', onPreview);
$scope.$on('$destroy', function (){
unreg();
});
});

Expand Down

0 comments on commit 7249a8a

Please sign in to comment.