Ticket #15760: inlines.diff

File inlines.diff, 639 bytes (added by Mark Lavin, 13 years ago)

Admin inlines with events

  • django/contrib/admin/media/js/inlines.js

     
    110110                                                        updateElementIndex(this, options.prefix, i);
    111111                                                });
    112112                                        }
     113                    $(this).trigger('formsetdelete', row);
    113114                                        return false;
    114115                                });
    115116                                // If a post-add callback was supplied, call it with the added form:
    116117                                if (options.added) {
    117118                                        options.added(row);
    118119                                }
     120                $(this).trigger('formsetadd', row);
    119121                                return false;
    120122                        });
    121123                }
Back to Top