Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#12830 closed (duplicate)

Jquery not includedd when actions=None in admin

Reported by: kickme444 Owned by: nobody
Component: contrib.admin Version: 1.2-beta
Severity: Keywords: jquery, javascript
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description (last modified by kmtracey)

In the admin interface, if you have a ModelAdmin class specifying actions=None, jquery.min.js is not included in the template. However, in change_list.html there is the following code:

<script type="text/javascript">
(function($) {
    $(document).ready(function($) {
        $("tr input.action-select").actions();

It is my opinion that jquery.min.js should be included in every admin page. My reasoning for this is that I have overridden a few of the admin templates to make use of jquery and I need to know that jquery will be available.

Change History (2)

comment:1 Changed 6 years ago by kmtracey

  • Description modified (diff)
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

Fixed formatting, please use preview prior to submit.

This sounds like #12396, which was fixed after beta1. (The fix does not include jquery in every admin page -- if you want to propose that you may want to bring it up on IRC or the dev list.)

comment:2 Changed 4 years ago by jacob

  • milestone 1.2 deleted

Milestone 1.2 deleted

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