Permalink
Browse files

Fixed #18477 -- Fixed colspan value when a TabularInline form contain…

…s validation errors. Thanks to yedpodtrzitko for the report and patch.
  • Loading branch information...
1 parent 1794e36 commit 1ace912f7e1916e03bc91ef91318803817d6a72e @jphalip jphalip committed Jun 16, 2012
@@ -44,7 +44,7 @@
if ($(this).attr("tagName") == "TR") {
// If forms are laid out as table rows, insert the
// "add" button in a new table row:
- var numCols = this.eq(0).children().length;
+ var numCols = this.eq(-1).children().length;
$(this).parent().append('<tr class="' + options.addCssClass + '"><td colspan="' + numCols + '"><a href="javascript:void(0)">' + options.addText + "</a></tr>");
addButton = $(this).parent().find("tr:last a");
} else {

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 1ace912

Please sign in to comment.