diff --git a/public/js/icinga/behavior/modal.js b/public/js/icinga/behavior/modal.js index 0bd849b44..6ad82a5c5 100644 --- a/public/js/icinga/behavior/modal.js +++ b/public/js/icinga/behavior/modal.js @@ -23,7 +23,7 @@ this.on('change', '#modal form input.autosubmit', this.onFormAutoSubmit, this); this.on('click', '[data-icinga-modal]', this.onModalToggleClick, this); this.on('mousedown', '#layout > #modal', this.onModalLeave, this); - this.on('click', '.modal-header > button', this.onModalClose, this); + this.on('click', '.modal-header > button, .modal-cancel', this.onModalClose, this); this.on('keydown', this.onKeyDown, this); };