philomena/assets/js/poll.ts

11 lines
317 B
TypeScript
Raw Normal View History

import { inputDuplicatorCreator } from './input-duplicator';
2019-10-05 02:09:52 +02:00
export function pollOptionCreator() {
inputDuplicatorCreator({
addButtonSelector: '.js-poll-add-option',
fieldSelector: '.js-poll-option',
maxInputCountSelector: '.js-max-option-count',
removeButtonSelector: '.js-option-remove',
2019-10-05 02:09:52 +02:00
});
}