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.
* has_patch: 0 => 1
Comment:
https://github.com/django/django/pull/12757
--
Ticket URL: <https://code.djangoproject.com/ticket/31483#comment:1>
* owner: nobody => Jon Dufresne
* status: new => assigned
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/31483#comment:2>
Comment (by Carlton Gibson <carlton@…>):
In [changeset:"a8bb53dbd24c90c280e90332d9a1f9f64efde3c7" a8bb53db]:
{{{
#!CommitTicketReference repository=""
revision="a8bb53dbd24c90c280e90332d9a1f9f64efde3c7"
Refs #31483 -- Removed CSS and JavaScript for unused HTML class add-
another.
The HTML class was removed in 07988744b347302925bc6cc66511e34224db55ab.
As such, the CSS and JavaScript is unused.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31483#comment:3>