2021-12-24 15:02:52 -08:00
|
|
|
import registerEvents from 'utilities/registerEvents';
|
2022-01-02 18:28:50 -08:00
|
|
|
import registerInboxEntryEvents from './entry';
|
|
|
|
import { authorSearchHandler } from './author';
|
|
|
|
import { deleteAllAuthorQuestionsHandler, deleteAllQuestionsHandler } from './delete';
|
2021-08-11 05:10:24 -07:00
|
|
|
|
|
|
|
export default (): void => {
|
2022-01-02 18:28:50 -08:00
|
|
|
registerEvents([
|
2022-01-03 06:04:23 -08:00
|
|
|
{ type: 'click', target: '#ib-delete-all', handler: deleteAllQuestionsHandler, global: true },
|
|
|
|
{ type: 'click', target: '#ib-delete-all-author', handler: deleteAllAuthorQuestionsHandler, global: true },
|
|
|
|
{ type: 'submit', target: '#author-form', handler: authorSearchHandler, global: true }
|
2022-01-02 18:28:50 -08:00
|
|
|
]);
|
2021-08-11 05:10:24 -07:00
|
|
|
|
2022-01-02 18:28:50 -08:00
|
|
|
registerInboxEntryEvents();
|
2021-08-11 05:10:24 -07:00
|
|
|
}
|