2022-01-02 20:15:01 -08:00
|
|
|
import registerEvents from 'retrospring/utilities/registerEvents';
|
2021-12-28 12:12:33 -08:00
|
|
|
import { createListHandler, createListInputHandler } from './create';
|
|
|
|
import { destroyListHandler } from './destroy';
|
|
|
|
import { listMembershipHandler } from './membership';
|
|
|
|
|
|
|
|
export default (): void => {
|
2022-01-02 20:15:01 -08:00
|
|
|
registerEvents([
|
|
|
|
{ type: 'click', target: 'input[type=checkbox][name=gm-list-check]', handler: listMembershipHandler, global: true },
|
|
|
|
{ type: 'click', target: 'button#create-list', handler: createListHandler, global: true },
|
|
|
|
{ type: 'click', target: 'a#delete-list', handler: destroyListHandler, global: true },
|
|
|
|
{ type: 'click', target: 'input#new-list-name', handler: createListInputHandler, global: true },
|
|
|
|
]);
|
2021-12-28 12:12:33 -08:00
|
|
|
}
|