Fixed #31641 -- Improved loading of navigation sidebar in admin.

This commit is contained in:
Collin Anderson 2020-06-01 14:35:19 -04:00 committed by Mariusz Felisiak
parent 229c9c6653
commit 4ae9a2b18e
1 changed files with 1 additions and 4 deletions

View File

@ -6,6 +6,7 @@
<link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% static "admin/css/base.css" %}{% endblock %}">
{% if not is_popup and is_nav_sidebar_enabled %}
<link rel="stylesheet" type="text/css" href="{% static "admin/css/nav_sidebar.css" %}">
<script src="{% static 'admin/js/nav_sidebar.js' %}" defer></script>
{% endif %}
{% block extrastyle %}{% endblock %}
{% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% static "admin/css/rtl.css" %}{% endblock %}">{% endif %}
@ -98,9 +99,5 @@
</div>
</div>
<!-- END Container -->
{% if not is_popup and is_nav_sidebar_enabled %}
<script src="{% static 'admin/js/nav_sidebar.js' %}" async></script>
{% endif %}
</body>
</html>