#31483: Remove admin change_form.js dependency on jQuery.
------------------------------------------------+------------------------
Reporter: Jon Dufresne | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: contrib.admin | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
https://github.com/django/django/blob/3.0/django/contrib/admin/static/admin/js/change_form.js
The file currently uses jQuery for two purposes:
1. To add an onclick handler to elements with the `add-another` class.
This event handler has been unused since
07988744b347302925bc6cc66511e34224db55ab (Django 1.8) when the class was
removed. Rather than porting and maintaining this code block, it can be
removed.
2. To find the first visible, enabled input and then focus it. This code
is simple enough to port.
--
Ticket URL: <https://code.djangoproject.com/ticket/31483>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/052.9a435dc48de48435d8673256c85b9878%40djangoproject.com.