Skip to content

Commit

Permalink
fix: remove on windwos load from add another
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Berger committed Feb 17, 2021
1 parent 88a1676 commit c8ea228
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8ea228

Please sign in to comment.