0
Fork 0
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:
Hannah Wolfe 2014-12-18 23:46:03 +00:00
commit 792f4c0d4e

View file

@ -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',