Explorar o código

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

Raymond Nunez %!s(int64=4) %!d(string=hai) anos
pai
achega
e84b054325
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      django/contrib/admin/static/admin/js/actions.js

+ 1 - 1
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) {