We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f50191 commit dc19434Copy full SHA for dc19434
src/unfold/static/admin/js/inlines.js
@@ -225,11 +225,24 @@
225
}
226
};
227
228
- $this.each(function (i) {
229
- $(this)
230
- .not("." + options.emptyCssClass)
231
- .addClass(options.formCssClass);
232
- });
+ // !CHANGED from original. Business logic for tabular inlines is different.
+ if ($this.parent().is("tbody")) {
+ $this
+ .parent()
233
+ .find("tr.form-row")
234
+ .each(function (i) {
235
+ $(this)
236
+ .not("." + options.emptyCssClass)
237
+ .addClass(options.formCssClass);
238
+ });
239
+ } else {
240
+ $this.each(function (i) {
241
242
243
244
245
+ }
246
247
// Create the delete buttons for all unsaved inlines:
248
$this
0 commit comments