app/assets/javascripts/decidim/proposals/add_proposal.js.es6 in decidim-proposals-0.15.2 vs app/assets/javascripts/decidim/proposals/add_proposal.js.es6 in decidim-proposals-0.16.0
- old
+ new
@@ -1,9 +1,9 @@
$(() => {
window.DecidimProposals = window.DecidimProposals || {};
window.DecidimProposals.bindProposalAddress = () => {
- const $checkbox = $("input:checkbox.has_address");
+ const $checkbox = $("input:checkbox[name$='[has_address]']");
const $addressInput = $("#address_input");
if ($checkbox.length > 0) {
const toggleInput = () => {
if ($checkbox[0].checked) {