More tweaks for native dynamic inlines. · pybender/pythoncms@63fae45 · GitHub
Skip to content

Commit 63fae45

Browse files
committed
More tweaks for native dynamic inlines.
1 parent 9c8c813 commit 63fae45

5 files changed

Lines changed: 4 additions & 10 deletions

File tree

mezzanine/core/admin.py

Lines changed: 1 addition & 1 deletion

mezzanine/core/static/mezzanine/css/admin/global.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,6 @@ td, th, th a, label, .help, p.help {
272272
#djDebugToolbarHandle {
273273
margin-top: 50px !important;
274274
}
275-
.inline-stacked ._order, div.dynamic-fields ._order {
276-
display: none;
277-
}
278275
.items .placeholder {
279276
display: block;
280277
}

mezzanine/core/static/mezzanine/js/admin/tabbed_translation_fields.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,7 @@ var django;
327327

328328
// Group fields in (existing) tabular inlines
329329
$('div.inline-group.inline-tabular').each(function (index) {
330-
if(!$(this).parent().hasClass("dynamic-inline")) {
331-
// Regular admin.TabularInline instead of custom TabularDynamicInlineAdmin
332-
$(this).wrap('<div>');
333-
}
330+
$(this).wrap('<div>');
334331
var tabularInlineGroup = new TabularInlineGroup({ 'el': $(this).parent() });
335332
var tab = createTabularTabs(tabularInlineGroup.getAllGroupedTranslations(), tabularInlineGroup.$table, index);
336333
if (tab) { tabs.push(tab); }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.dynamic-inline .vTextField {width:100px !important;}
1+
.inline-group .vTextField {width:100px !important;}
Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)