Remove delete email confirmation dialog

This commit is contained in:
Alexandre Iooss 2022-03-11 18:43:59 +01:00
parent f731af825c
commit 1462ef7240

View file

@ -64,18 +64,4 @@ SPDX-License-Identifier: GPL-3.0-or-later
{% endif %} {% endif %}
</div> </div>
</div> </div>
<script type="text/javascript">
(function() {
var message = "{% trans 'Do you really want to remove the selected e-mail address?' %}";
var actions = document.getElementsByName('action_remove');
if (actions.length) {
actions[0].addEventListener("click", function(e) {
if (! confirm(message)) {
e.preventDefault();
}
});
}
})();
</script>
{% endblock %} {% endblock %}