From 74df1511fe8c60165c89d69818e27daebc27e670 Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Wed, 6 Apr 2022 19:45:24 +0200 Subject: [PATCH] modal.js: Change modal cancel selector --- public/js/icinga/behavior/modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/icinga/behavior/modal.js b/public/js/icinga/behavior/modal.js index 6ad82a5c5..ae150fc6d 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, .modal-cancel', this.onModalClose, this); + this.on('click', '#modal [data-icinga-modal-cancel]', this.onModalClose, this); this.on('keydown', this.onKeyDown, this); };