Opened 12 years ago

Closed 12 years ago

Last modified 11 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: no UI/UX: no

Description (last modified by Karen Tracey)

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 12 years ago by Karen Tracey

Description: modified (diff)
Resolution: duplicate
Status: newclosed

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 11 years ago by Jacob

milestone: 1.2

Milestone 1.2 deleted

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