#15760: Feature: JS Hooks for Dynamic Inlines -------------------------------------+------------------------------------- Reporter: mlavin | Owner: Type: New feature | Status: new Component: contrib.admin | Version: master Severity: Normal | Resolution: Keywords: inlines jquery | Triage Stage: Accepted callback | Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 1 Easy pickings: 0 | UI/UX: 1 -------------------------------------+-------------------------------------
Comment (by RamezIssac): How About to extend the current plugin default to accept say 'addedCallback' and 'deletedCalback' which can be assigned in to the django.jQuery.fn.formset.default . Those are left for the user to fill The Tabluar & Stacked inline js can callback those function along with their 'added' function And as answer to julien question about what if many inline existed on a page , we can send both the created form and the formset name. For using this new feature, a change_form template is extended for the model you want to work with, and we add the javascript function of desire inside the HTML template. Mainly in the change_form_document_ready block or maybe a new block (where missing block.super is not gonna mess things up) I can do that if idea is accepted -- Ticket URL: <https://code.djangoproject.com/ticket/15760#comment:15> 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 unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/064.290e71b52a5151357fa0e75ed7a9b9c4%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.