Opened 12 years ago

Closed 12 years ago

#20037 closed Bug (invalid)

Django-admin inlines javascript tabularFormset -> formset

Reported by: hkmartinb1993@… Owned by: nobody
Component: contrib.admin Version: 1.5
Severity: Normal Keywords: JS, tabularFormset, formset
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: yes

Description

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>

Change History (3)

comment:1 by hkmartinb1993@…, 12 years ago

Resolution: invalid
Status: newclosed

comment:2 by fiolorlando@…, 12 years ago

Resolution: invalid
Status: closednew

comment:3 by fiolorlando@…, 12 years ago

Resolution: invalid
Status: newclosed

My bad. I had the olds (1.4) inline.min.js and inline.js in my staticdirs so the new ones don't got collected.

Note: See TracTickets for help on using tickets.
Back to Top