philomena/assets/js/poll.js

13 lines
341 B
JavaScript
Raw Permalink Normal View History

import { inputDuplicatorCreator } from './input-duplicator';
2019-10-05 02:09:52 +02:00
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
});
}
export { pollOptionCreator };