Modal: Use data attribute to identify modals

This commit is contained in:
Marius Hein 2019-10-21 14:30:03 +02:00
parent d580fa6390
commit fce3f0fdc8

View File

@ -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();