Kaydet (Commit) f5ee2893 authored tarafından Jannis Leidel's avatar Jannis Leidel

Fixed #12793 - Only use the admin actions JavaScript if not explicitly…

Fixed #12793 - Only use the admin actions JavaScript if not explicitly deactivated with 'actions = None' in the ModelAdmin. Thanks, Florian Apolloner.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12396 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst d334713e
......@@ -19,6 +19,7 @@
{% block extrahead %}
{{ block.super }}
{% if action_form %}{% if actions_on_top or actions_on_bottom %}
<script type="text/javascript">
(function($) {
$(document).ready(function($) {
......@@ -26,6 +27,7 @@
});
})(jQuery.noConflict());
</script>
{% endif %}{% endif %}
{% endblock %}
{% block bodyclass %}change-list{% endblock %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment