Skip to content

Commit

Permalink
refactor: remove the "javascripts" block
Browse files Browse the repository at this point in the history
  • Loading branch information
jerivas committed Aug 12, 2020
1 parent b5316ca commit e04a9c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 2 additions & 4 deletions filebrowser_safe/templates/filebrowser/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{% endblock %}

<!-- JAVASCRIPTS -->
{% block javascripts %}
{% block extrahead %}
{{ block.super }}

{% ifequal query.pop '1' %} <!-- FileBrowseField -->
Expand All @@ -32,16 +32,14 @@
<script language="javascript" type="text/javascript" src="{{ settings_var.URL_FILEBROWSER_MEDIA }}js/FB_TinyMCE4.js"></script>
{% endifequal %}

{{ media }}

<script type="text/javascript" src="{% static "grappelli/js/admin/Changelist.js" %}"></script>

{% if not actions_on_top and not actions_on_bottom %}
<style>
#changelist table thead th:first-child { width: inherit; }
</style>
{% endif %}
{% endblock %}
{% endblock extrahead %}

{% block rtl_styles %}
{{ block.super }}
Expand Down
5 changes: 2 additions & 3 deletions filebrowser_safe/templates/filebrowser/upload.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@
{% endblock %}

<!-- JAVASCRIPTS -->
{% block javascripts %}
{% block extrahead %}
{{ block.super }}
<script type="text/javascript" src="../../jsi18n/"></script>
<script type="text/javascript" src="{{ settings_var.URL_FILEBROWSER_MEDIA }}js/upload.js"></script>
{% endblock %}
{% endblock extrahead %}

<!-- COLTYPE/BODYCLASS -->
{% block coltype %}colM{% endblock %}
Expand Down

0 comments on commit e04a9c1

Please sign in to comment.