diff --git a/elections/templates/elections/election_admin.html b/elections/templates/elections/election_admin.html index 1da93d6..0b09c68 100644 --- a/elections/templates/elections/election_admin.html +++ b/elections/templates/elections/election_admin.html @@ -4,66 +4,17 @@ {% block custom_js %} {% endblock %} diff --git a/elections/templates/elections/election_voters.html b/elections/templates/elections/election_voters.html index be8bfa9..409ee96 100644 --- a/elections/templates/elections/election_voters.html +++ b/elections/templates/elections/election_voters.html @@ -18,7 +18,7 @@ event.preventDefault(); if (_$('[name="delete"]', f, false).value == 'oui') { - _get(f.action, r => { + get(f.action).then(r => { if (r.success && r.action == 'delete') { {% if election.restricted %} const r = _id(f.dataset.target); @@ -27,21 +27,21 @@ i.classList.remove('fa-check'); i.classList.add('fa-times'); {% else %} - _id(f.dataset.target).remove() + id(f.dataset.target).remove() {% endif %} // On ferme le modal document.documentElement.classList.remove('is-clipped'); - _id(f.dataset.modal).classList.remove('is-active'); + id(f.dataset.modal).classList.remove('is-active'); } if (r.message) { - _notif(r.message.content, r.message.class); + notify(r.message.content, r.message.class); } }); } else { document.documentElement.classList.remove('is-clipped'); - _id(f.dataset.modal).classList.remove('is-active'); + id(f.dataset.modal).classList.remove('is-active'); } }); }); diff --git a/elections/templates/elections/vote.html b/elections/templates/elections/vote.html index 2dd970b..a338f34 100644 --- a/elections/templates/elections/vote.html +++ b/elections/templates/elections/vote.html @@ -51,15 +51,14 @@