Sha256: 494fd56c79b46f0b325ca549e0e530c30369368e27317af7852c1bbb99aa9837
Contents?: true
Size: 648 Bytes
Versions: 32
Compression:
Stored size: 648 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); } new window.Decidim.Select2Field($('#proposal_scope_id')); // eslint-disable-line no-new }; window.DecidimProposals.bindProposalAddress(); });
Version data entries
32 entries across 32 versions & 2 rubygems