﻿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
16359	"Listen to click events from ""Add another"" admin inline link should be easier"	contact@…	Michael Manfre	"When creating custom fields for django admin inlines, it is handy to be able to listen to an even fired by clicking on ""add another"". I would like to listen to the click event to initiate my jquery plugin and pass it some parameters. Currently this is (to my knowledge) not possible. When binding the click event to it, it doesn't work:

{{{
    $('a').live('click', function() {
        console.log('add clicked');
    });
}}}

Also binding click to .add-row doesn't work. Apparently some other script (admin/js/inlines.min.js) which listens to the same element returns false. 

To make this work inlines.min.js should not return false, or raise another event. 
To make it more easy to work with, the link should get an id like #row-add-another.
"	Cleanup/optimization	closed	contrib.admin	1.3	Normal	duplicate	admin, javascript, event, add another	dguardiola@…	Accepted	0	0	0	0	0	0
