#31013: Remove jQuery dependency from SelectBox.js
------------------------------------------------+------------------------
               Reporter:  Johannes Hoppe        |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  contrib.admin         |        Version:  master
               Severity:  Normal                |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  1
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  0
                  UI/UX:  1                     |
------------------------------------------------+------------------------
 Currently, `django/contrib/admin/static/admin/js/SelectBox.js` uses jQuery
 only to execute `$(box).empty();` which can easily replaced with

 {{{
 while (box.options.length)
                 box.options.remove(0);
 }}}

 I'd suggest making that tiny change and drop the jQuery dependency.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31013>
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.f0623570b82de29b62ffa75ab93fb665%40djangoproject.com.

Reply via email to