#19598: Bug in inlines.js
-------------------------------+-----------------------------------
Reporter: rj@… | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 1.4
Severity: Normal | Keywords: javascript,inlines.js
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 1
-------------------------------+-----------------------------------
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/19598>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.