mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Merge pull request #4682 from jaswilli/modal-error
Prevent error when closing modal dialog
This commit is contained in:
commit
792f4c0d4e
1 changed files with 2 additions and 1 deletions
|
@ -13,9 +13,10 @@ var ModalDialog = Ember.Component.extend({
|
|||
this.$('.js-modal-background').on('animationend webkitAnimationEnd oanimationend MSAnimationEnd', function (event) {
|
||||
if (event.originalEvent.animationName === 'fade-out') {
|
||||
self.$('.js-modal, .js-modal-background').removeClass('open');
|
||||
self.sendAction();
|
||||
}
|
||||
});
|
||||
|
||||
this.sendAction();
|
||||
},
|
||||
|
||||
confirmaccept: 'confirmAccept',
|
||||
|
|
Loading…
Add table
Reference in a new issue