Skip to content

Commit

Permalink
Merge pull request #426 from donaldharvey/master
Browse files Browse the repository at this point in the history
Support django-nested-admin stacked inlines
  • Loading branch information
deschler committed Sep 11, 2017
2 parents c739a1e + f64dd56 commit 21f806a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,10 @@ var google, django, gettext;
// TODO: Refactor
$('.mt').parents('.inline-group').not('.tabular').find('.add-row a').click(function () {
var grouper = new TranslationFieldGrouper({
$fields: $(this).parent().prev().prev().find('.mt')
$fields: $(this).parent().prev().prev().find('.mt').add(
// Support django-nested-admin stacked inlines
$(this).parent().prev('.djn-items').children('.djn-item').last().find('.mt')
)
});
var tabs = createTabs(grouper.groupedTranslations);
// Update the main switch as it is not aware of the newly created tabs
Expand Down

0 comments on commit 21f806a

Please sign in to comment.