Saturday, December 29, 2012

Re: Bug in inlines.js

You should post this to https://code.djangoproject.com/newticket

Cheers,
Ryan

On 29/12/2012, at 12:50 AM, Ruud van der Weide <rjvanderweide@gmail.com> wrote:

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 ($this.is("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 https://groups.google.com/d/msg/django-users/-/LmL4VKrIpPkJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment