Sha256: 671b93186ced8a02826e0f34bce3d2b423e9340318830aec8e7ac63a59345a72
Contents?: true
Size: 555 Bytes
Versions: 16
Compression:
Stored size: 555 Bytes
Contents
$(() => { window.DecidimProposals = window.DecidimProposals || {}; window.DecidimProposals.bindProposalAddress = () => { const $checkbox = $('#proposal_has_address'); const $addressInput = $('#address_input'); if ($checkbox.length > 0) { const toggleInput = () => { if ($checkbox[0].checked) { $addressInput.show(); } else { $addressInput.hide(); } } toggleInput(); $checkbox.on('change', toggleInput); } }; window.DecidimProposals.bindProposalAddress(); });
Version data entries
16 entries across 16 versions & 2 rubygems