2021-12-24 15:02:52 -08:00
|
|
|
import registerEvents from 'utilities/registerEvents';
|
|
|
|
import { reportEventHandler } from './report';
|
2021-08-11 05:10:24 -07:00
|
|
|
|
|
|
|
export default (): void => {
|
|
|
|
const entries: NodeList = document.querySelectorAll('.inbox-entry:not(.js-initialized)');
|
|
|
|
|
|
|
|
entries.forEach((element: HTMLElement) => {
|
|
|
|
registerEvents([
|
2021-12-24 15:02:52 -08:00
|
|
|
{ type: 'click', target: element.querySelector('[name=ib-report]'), handler: reportEventHandler }
|
2021-08-11 05:10:24 -07:00
|
|
|
]);
|
|
|
|
|
|
|
|
element.classList.add('js-initialized');
|
|
|
|
});
|
|
|
|
}
|