Disable autoescape in js code

This commit is contained in:
Ludovic Stephan 2019-11-25 10:48:43 +01:00
parent 14164ec4a5
commit d04b79bcb5

View file

@ -11,7 +11,7 @@
{% if account.user == request.user %}
<script type="text/javascript" src="{% static 'kfet/vendor/Chart.min.js' %}"></script>
<script type="text/javascript" src="{% static 'kfet/js/statistic.js' %}"></script>
{% autoescape off %}
<script type="text/javascript">
$(document).ready(function() {
var stat_last = new StatsGroup(
@ -24,6 +24,7 @@ $(document).ready(function() {
);
});
</script>
{% endautoescape %}
{% endif %}
{% endblock %}