fix: remove on windwos load from add another

This commit is contained in:
Adrian Berger 2021-02-17 15:06:51 +01:00
parent 88a1676c54
commit c8ea22877b

View file

@ -499,9 +499,7 @@ var google, django, gettext;
// Note: The add another functionality in admin is injected through inline javascript,
// here we have to run after that (and after all other ready events just to be sure).
$(document).ready(function () {
$(window).on("load", function () {
handleAddAnotherInline();
});
handleAddAnotherInline();
});
// Group fields in (existing) tabular inlines