mirror of
https://github.com/Hopiu/django-modeltranslation.git
synced 2026-05-14 08:03:10 +00:00
Merge pull request #426 from donaldharvey/master
Support django-nested-admin stacked inlines
This commit is contained in:
commit
21f806a085
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue