0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Added missing "event" argument to addEventListener() call in actions.js.

This commit is contained in:
Raymond Nunez 2021-04-09 03:03:17 -04:00 committed by GitHub
parent 1c004939d5
commit e84b054325
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,7 +125,7 @@
});
});
document.querySelector('#changelist-form button[name=index]').addEventListener('click', function() {
document.querySelector('#changelist-form button[name=index]').addEventListener('click', function(event) {
if (list_editable_changed) {
const confirmed = confirm(gettext("You have unsaved changes on individual editable fields. If you run an action, your unsaved changes will be lost."));
if (!confirmed) {