From fce3f0fdc8a4b228fb3e6a4dc7fec5917253d33f Mon Sep 17 00:00:00 2001 From: Marius Hein Date: Mon, 21 Oct 2019 14:30:03 +0200 Subject: [PATCH] Modal: Use data attribute to identify modals --- 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 1ce0fd05a..bb83ad833 100644 --- a/public/js/icinga/behavior/modal.js +++ b/public/js/icinga/behavior/modal.js @@ -15,7 +15,7 @@ $overlay.appendTo($('#layout')); - this.on('click', '.modal-toggle', this.onModalToggleClick, this); + this.on('click', '[data-icinga-modal=true]', this.onModalToggleClick, this); } Modal.prototype = new Icinga.EventListener();