#20037: Django-admin inlines javascript tabularFormset -> formset
---------------------------------+-----------------------------------------
Reporter: hkmartinb1993@… | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 1.5
Severity: Normal | Keywords: JS, tabularFormset, formset
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 1
---------------------------------+-----------------------------------------
Django-admin , if inlines are used, produce an inline script for each
inline item,
like the one below;
'''But''' the function '$.tabularFormset()' is ''no more defined''
anywhere.
It's now known as '$.formset()'
So django-admin view should be updated to use '$.formset()' instead of
'$.tabularFormset'
----
<script type="text/javascript">
(function($) {
$("#proxyresource_set-group .tabular.inline-related tbody
tr").tabularFormset({
prefix: "proxyresource_set",
adminStaticPrefix: '/static/admin/',
addText: "Add another item",
deleteText: "Elimina"
});
})(django.jQuery);
</script>
--
Ticket URL: <https://code.djangoproject.com/ticket/20037>
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 [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.