Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#12830 closed (duplicate)

Jquery not includedd when actions=None in admin — at Version 1

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();
    });
})(jQuery.noConflict());
</script>

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 (1)

comment:1 by Karen Tracey, 14 years ago

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.)

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