﻿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
15760	Feature: JS Hooks for Dynamic Inlines	Mark Lavin	Tim Graham <timograham@…>	"It is difficult to access the newly added row when working with dynamic inlines. This makes it difficult to use widgets which require javascript bindings (such as auto-complete widgets) in the inlines. I believe this is the issue that someone was trying to raise in #15693. While the formset plugin does allow for passing method to be called when a new row is added, this is always already populated by admin/edit_inline/stacked.html and admin/edit_inline/tabular.html. If you want to include another method to be run you need to override these templates completely.

I've attached a patch which adds two events to the formset plugin: `formsetadd` and `formsetdelete` which are fired by the add and delete rows respectively. The example usage would be
{{{
django.jQuery('.add-row a').live('formsetadd', function(e, row) {
    console.log('Formset add!');
    console.log($(row));
});
}}}"	New feature	closed	contrib.admin	dev	Normal	fixed	inlines jquery callback	dev@… Jaap Roes cmawebsite@… Giorgos Stratakis Ramez Issac	Accepted	1	0	0	0	0	1
