Merge pull request #478 from yihuang/patch-1

Fix js error with new jQuery
This commit is contained in:
partizan 2019-02-11 23:56:30 +02:00 committed by GitHub
commit 459c84be56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -402,7 +402,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).load(function() {
$(window).on('load', function() {
handleAddAnotherInline();
});
});
@ -416,7 +416,7 @@ var google, django, gettext;
createTabularTabs(tabularInlineGroup.getAllGroupedTranslations()));
$(document).ready(function() {
$(window).load(function() {
$(window).on('load', function() {
handleTabularAddAnotherInline(tabularInlineGroup);
});
});