Changes between Initial Version and Version 1 of Ticket #15760, comment 15
- Timestamp:
- Jun 17, 2015, 9:45:41 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #15760, comment 15
initial v1 1 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 fill2 The Tab luar & Stacked inline js can callback those function along with their 'added' function1 How About to extend the current plugin defaults to accept say 'addedCallback' and 'deletedCalback' which can be assigned in to the django.jQuery.fn.formset.defaults . Those options are left for the user to fill. 2 The Tabular & Stacked inline js can callback those function along with their 'added' and 'deleted' function 3 3 4 And as answer to 4 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. 5 5 6 6 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) 7 7 8 I can do th at if idea is accepted8 I can do this if idea is accepted.