﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
17373	"jQuery forward compatibility: TabularInline with extra = 0: ""Add another"" wraps in <div> instead of <tr> inside of <table>"	James Pic	nobody	"To reproduce the bug, set extra = 0 in a TabularInline. Then open the admin page with the inline table, the ""Add another"" link is in a tr/td inside the table. Click ""Add another"" and it will add a row and wrap the ""Add another"" link inside a <div> instead of tr/td.

It is semantically wrong (a <div> may not have <table> for parent) and displays wrong (""Add another X"" shouldn't wordwrap).

To fix the bug, change in https://code.djangoproject.com/browser/django/trunk/django/contrib/admin/static/admin/js/inlines.js#L44:

   {{{
$(this).attr(""tagName"") == ""TR""
   }}}

Into:

   {{{
$(this).is('tr')
   }}}

FTR is there a better way than this command to enable non-compressed admin js ?

{{{
ln -Lfn ../env/lib/python2.7/site-packages/django/contrib/admin/media/js/inlines.js static/admin/js/inlines.min.js
}}}"	Bug	closed	contrib.admin	1.3	Normal	fixed			Unreviewed	0	0	0	0	0	0
