Code

#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>

Attachments (0)

Change History (3)

comment:1 Changed 13 months ago by hkmartinb1993@…

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

comment:2 Changed 12 months ago by fiolorlando@…

  • Resolution invalid deleted
  • Status changed from closed to new

comment:3 Changed 12 months ago by fiolorlando@…

  • Resolution set to invalid
  • Status changed from new to closed

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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.