modal.js: Trigger `close-modal` when.. closing a modal
This commit is contained in:
parent
90a056d988
commit
e704309c41
|
@ -190,6 +190,7 @@
|
|||
$modal.removeClass('active');
|
||||
// Using `setTimeout` here to let the transition finish
|
||||
setTimeout(function () {
|
||||
$modal.find('#modal-content').trigger('close-modal');
|
||||
$modal.remove();
|
||||
}, 200);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue