mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
Added missing "event" argument to addEventListener() call in actions.js.
This commit is contained in:
parent
1c004939d5
commit
e84b054325
@ -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) {
|
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."));
|
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) {
|
if (!confirmed) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user