15 lines
857 B
TypeScript
15 lines
857 B
TypeScript
import registerEvents from 'utilities/registerEvents';
|
|
import { banCheckboxHandler, banFormHandler, permanentBanCheckboxHandler } from './ban';
|
|
import { destroyReportHandler } from './destroy';
|
|
import { privilegeCheckHandler } from './privilege';
|
|
|
|
export default (): void => {
|
|
registerEvents([
|
|
{ type: 'click', target: '[type="checkbox"][name="check-your-privileges"]', handler: privilegeCheckHandler, global: true },
|
|
{ type: 'click', target: '[name="mod-delete-report"]', handler: destroyReportHandler, global: true },
|
|
{ type: 'change', target: '[name="ban"][type="checkbox"]', handler: banCheckboxHandler, global: true },
|
|
{ type: 'change', target: '[name="permaban"][type="checkbox"]', handler: permanentBanCheckboxHandler, global: true },
|
|
{ type: 'submit', target: '#modal-ban form', handler: banFormHandler, global: true }
|
|
]);
|
|
}
|