Retrospring/app/javascript/retrospring/features/lists/index.ts

11 lines
502 B
TypeScript
Raw Normal View History

2021-12-28 12:12:33 -08:00
import { on } from 'retrospring/utilities/on';
import { createListHandler, createListInputHandler } from './create';
import { destroyListHandler } from './destroy';
import { listMembershipHandler } from './membership';
export default (): void => {
on('click', 'input[type=checkbox][name=gm-list-check]', listMembershipHandler);
on('click', 'button#create-list', createListHandler);
on('click', 'a#delete-list', destroyListHandler);
on('keyup', 'input#new-list-name', createListInputHandler);
}