Commits

Stephen McDonald committed dc791dd

Restore change_list custom media, remove redundant actions js, remove actions icons.

  • Participants
  • Parent commits a6a7cd3

Comments (0)

Files changed (1)

grappelli_safe/templates/admin/change_list.html

 {% block extrastyle %}
     <link rel="stylesheet" type="text/css" href="{% load staticfiles %}{% static "grappelli/" %}css/changelist.css" />
     {% if not actions_on_top and not actions_on_bottom %}
+    <style>#changelist table thead th:first-child {width: inherit}</style>
+    {% endif %}
     <style>
-        #changelist table thead th:first-child {width: inherit}
+    #changelist .actions {padding:7px;}
+    #changelist .actions label {background:none; padding:0; margin:0;}
     </style>
-    {% endif %}
 {% endblock %}
 
 <!-- JAVASCRIPTS -->
     {% url "admin:jsi18n" as jsi18nurl %}
     <script src="{{ jsi18nurl|default:"../../jsi18n/" }}"></script>
     {{ block.super }}
+    {{ media }}
     <script src="{% static "grappelli/" %}js/admin/Changelist.js"></script>
     {% if is_popup %}
     <script>
         $('input#action-toggle').parent().hide();
     </script>
     {% endif %}
-        {% if action_form %}
-        <script>
-            (function($) {
-                $(document).ready(function() {
-                    $("tr input.action-select").actions();
-                });
-            })(django.jQuery);
-        </script>
-    {% endif %}
 {% endblock %}
 
 <!-- COLTYPE/BODYCLASS-- >