Modal.js: Prevent unnecessarily `onKeyDown` call
This commit is contained in:
parent
79971cb1a6
commit
74369b7bf4
|
@ -24,7 +24,7 @@
|
|||
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('keydown', this.onKeyDown, this);
|
||||
this.on('keydown', '#layout > #modal.active', this.onKeyDown, this);
|
||||
};
|
||||
|
||||
Modal.prototype = new Icinga.EventListener();
|
||||
|
|
Loading…
Reference in New Issue