Skip to content

Commit c7eceb0

Browse files
committed
refactor: remove the "javascripts" block
In accordance to stephenmcd/grappelli-safe@04a8900
1 parent 24a2f06 commit c7eceb0

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

filebrowser_safe/templates/filebrowser/index.html

+2-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
{% endblock %}
1212

1313
<!-- JAVASCRIPTS -->
14-
{% block javascripts %}
14+
{% block extrahead %}
1515
{{ block.super }}
1616

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

35-
{{ media }}
36-
3735
<script type="text/javascript" src="{% static "grappelli/js/admin/Changelist.js" %}"></script>
3836

3937
{% if not actions_on_top and not actions_on_bottom %}
4038
<style>
4139
#changelist table thead th:first-child { width: inherit; }
4240
</style>
4341
{% endif %}
44-
{% endblock %}
42+
{% endblock extrahead %}
4543

4644
{% block rtl_styles %}
4745
{{ block.super }}

filebrowser_safe/templates/filebrowser/upload.html

+2-3
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@
1616
{% endblock %}
1717

1818
<!-- JAVASCRIPTS -->
19-
{% block javascripts %}
19+
{% block extrahead %}
2020
{{ block.super }}
21-
<script type="text/javascript" src="../../jsi18n/"></script>
2221
<script type="text/javascript" src="{{ settings_var.URL_FILEBROWSER_MEDIA }}js/upload.js"></script>
23-
{% endblock %}
22+
{% endblock extrahead %}
2423

2524
<!-- COLTYPE/BODYCLASS -->
2625
{% block coltype %}colM{% endblock %}

0 commit comments

Comments
 (0)