Browse Source

Don't include mass actions JS if there are no mass actions defined.

Rafał Pitoń 11 years ago
parent
commit
5e37f88e73
1 changed files with 2 additions and 0 deletions
  1. 2 0
      misago/templates/misago/admin/generic/list.html

+ 2 - 0
misago/templates/misago/admin/generic/list.html

@@ -174,9 +174,11 @@
 
 
 {% block javascripts %}
+{% if mass_actions %}
 <script type="text/javascript">
   $(function() {
     tableMassActions("{{ empty_selection_label }}", "{{ selection_label }}");
   });
 </script>
+{% endif %}
 {% endblock javascripts %}