Selaa lähdekoodia

Fixed django 1.10 stacked inline layout

Denis K 8 vuotta sitten
vanhempi
commit
56ce160127

+ 4 - 0
jet/static/jet/css/_changeform.scss

@@ -499,6 +499,10 @@ body.popup .submit-row {
   .aligned label {
     width: 160px;
   }
+
+  > fieldset.module {
+    padding: 0;
+  }
 }
 
 .inline-related {

+ 1 - 1
jet/static/jet/js/src/layout-updaters/changeform-tabs.js

@@ -32,7 +32,7 @@ ChangeFormTabsUpdater.prototype = {
 
         $inlines.each(function(i) {
             var $inline = $(this);
-            var $header = $inline.find('> h2, .tabular.inline-related > .module > h2').first();
+            var $header = $inline.find('> h2, > fieldset.module > h2, .tabular.inline-related > .module > h2').first();
             var title = $header.length != 0 ? $header.html() : self.t('Tab');
             var className = 'inline_' + i;