Commit d8a36bfbc3c43a9bca82d3cab77159d835f72b0c

Authored by Sergio Oliveira
1 parent 90c24e2a

Fixed bug caused by hashed_name

Showing 1 changed file with 5 additions and 1 deletions   Show diff stats
colab/search/templates/search/search.html
... ... @@ -7,7 +7,11 @@
7 7 {% block head_js %}
8 8 <script type="text/javascript" src="{% static 'third-party/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js' %}"></script>
9 9 {% if use_language %}
10   - <script type="text/javascript" src="{% static 'third-party/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.{{ use_language }}.js' %}"></script>
  10 +{% comment %}
  11 +We must use STATIC_URL because we have a language composing the URL
  12 + and the static template tag don't know how to use it. #}
  13 +{% endcomment %}
  14 + <script type="text/javascript" src="{{ STATIC_URL }}third-party/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.{{ use_language }}.js"></script>
11 15 {% endif %}
12 16  
13 17 <script type="text/javascript">
... ...