Saturday, December 29, 2012

Bug in inlines.js

I just noticed a small bug in inlines.js. In the part where the "addButton" is included, the following check is used:
if ($this.attr("tagName") == "TR") {
This check doesn't work as expected however. The attr-method reads an attribute. "tagName" isn't an attribute. This check should be:
if ($"tr")) {

Due to this bug, the "Add another ..." link gets positioned weirdly when using a TabularInline.

- Ruud

You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment