From e84b05432554125598b2536498462de8064f597c Mon Sep 17 00:00:00 2001 From: Raymond Nunez Date: Fri, 9 Apr 2021 03:03:17 -0400 Subject: [PATCH] Added missing "event" argument to addEventListener() call in actions.js. --- django/contrib/admin/static/admin/js/actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/admin/static/admin/js/actions.js b/django/contrib/admin/static/admin/js/actions.js index 3e76ff962ae..239aa5dc392 100644 --- a/django/contrib/admin/static/admin/js/actions.js +++ b/django/contrib/admin/static/admin/js/actions.js @@ -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) {