From 3af3901a7df3ab21f0e2897a59eeca3c5e5b7d78 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 16 Jul 2021 07:32:27 +0200 Subject: [PATCH] fix top JS --- teleforma/exam/templates/exam/script_detail.html | 4 +++- teleforma/templates/teleforma/base.html | 13 ++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/teleforma/exam/templates/exam/script_detail.html b/teleforma/exam/templates/exam/script_detail.html index fbc2fd75..e9b5fcca 100644 --- a/teleforma/exam/templates/exam/script_detail.html +++ b/teleforma/exam/templates/exam/script_detail.html @@ -5,7 +5,7 @@ {% load pdfannotator %} {% load thumbnail %} -{% block extra_javascript %} +{% block top_javascript %} {# #} {# #} {# #} @@ -21,7 +21,9 @@ {% endif %} +{% endblock top_javascript %} +{% block extra_javascript %} {% endblock extra_javascript %} {% block extra_stylesheets %} diff --git a/teleforma/templates/teleforma/base.html b/teleforma/templates/teleforma/base.html index e015dce5..d3ed9e06 100644 --- a/teleforma/templates/teleforma/base.html +++ b/teleforma/templates/teleforma/base.html @@ -32,6 +32,9 @@ {% endblock %} {% block extra_stylesheets %}{% endblock %} + + {% block top_javascript %}{% endblock top_javascript %} + @@ -239,6 +242,7 @@ {% endif %} + {% block extra_javascript %}{% endblock %} @@ -305,17 +309,8 @@ }); - {% block js-status %} - {% get_telecaster as telecaster %} - {% if telecaster %} - - {% endif %} - {% endblock js-status %} - {% endblock %} - {% block extra_javascript %}{% endblock %} -