diff --git a/elections/templates/elections/admin/option.html b/elections/templates/elections/admin/option.html index cae4b93..27abcd7 100644 --- a/elections/templates/elections/admin/option.html +++ b/elections/templates/elections/admin/option.html @@ -9,7 +9,7 @@ - + diff --git a/elections/templates/elections/election_admin.html b/elections/templates/elections/election_admin.html index 4101114..1da93d6 100644 --- a/elections/templates/elections/election_admin.html +++ b/elections/templates/elections/election_admin.html @@ -52,10 +52,10 @@ _$('.del', e).forEach(_del); if (r.action == 'create') { - _id(f.dataset.next).appendChild(e.childNodes[1]); + _id(f.dataset.next).appendChild(e.firstElementChild); } else if (r.action == 'update') { const n = _id(f.dataset.origin); - n.parentNode.replaceChild(e.childNodes[1], n); + n.parentNode.replaceChild(e.firstElementChild, n); } // On ferme le modal document.documentElement.classList.remove('is-clipped');