diff --git a/src/assets/js/kb-modal-ajax.js b/src/assets/js/kb-modal-ajax.js index e557fc6..3134733 100644 --- a/src/assets/js/kb-modal-ajax.js +++ b/src/assets/js/kb-modal-ajax.js @@ -44,7 +44,10 @@ * Requests the content of the modal and injects it, called after the * modal is shown */ - ModalAjax.prototype.shown = function () { + ModalAjax.prototype.shown = function (event) { + if (event.target != this.element) { + return; + } var self = this;