Opened 15 years ago

Last modified 13 years ago

#12830 closed

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

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

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

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