()
| 407 | } |
| 408 | |
| 409 | export function initInteractions() { |
| 410 | $('question-prev-btn').addEventListener('click', goToPrev); |
| 411 | $('question-next-btn').addEventListener('click', goToNext); |
| 412 | $('question-other-input').addEventListener('input', e => { |
| 413 | if (questionSubmitting) return; |
| 414 | updateOtherText(e.target.value || ''); |
| 415 | }); |
| 416 | $('question-other-input').addEventListener('keydown', e => { |
| 417 | if (e.key === 'Enter') { e.preventDefault(); goToNext(); } |
| 418 | }); |
| 419 | $('plan-other-btn').addEventListener('click', sendPlanOther); |
| 420 | $('plan-other-input').addEventListener('keydown', e => { |
| 421 | if (e.key === 'Enter') { e.preventDefault(); sendPlanOther(); } |
| 422 | }); |
| 423 | } |
nothing calls this directly
no test coverage detected