Skip to content
This repository
Browse code

Move some js into run_js block to prevent caching of importent contex…

…t data
  • Loading branch information...
commit 574630f885570c4994d1a657de6a8a919f21213d 1 parent 280189c
Christoph Heer jarus authored

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 krprj/worshipmap/templates/dashboard.html
4 krprj/worshipmap/templates/dashboard.html
@@ -13,6 +13,10 @@
13 13 <script type="text/javascript" src="{{ STATIC_URL }}lib/raphael/g.raphael-min.js"></script>
14 14 <script type="text/javascript" src="{{ STATIC_URL }}lib/raphael/g.pie-min.js"></script>
15 15 <script type="text/javascript" src="{{ STATIC_URL }}lib/kirchenreich/dashboard.js"></script>
  16 +{% endblock %}
  17 +
  18 +{% block run_js %}
  19 +{{ block.super }}
16 20 <script>
17 21 kr.plot.pie('kirchenreich_data_source', 80, 'right', [{{ osm_count }}, {{ wikipedia_count }}], ['OSM', 'Wikipedia']);
18 22 kr.plot.pie('osm_ratio_plot', 80, 'left', [{{ osm_type.W }}, {{ osm_type.N }}], ['Ways', 'Nodes']);

0 comments on commit 574630f

Please sign in to comment.
Something went wrong with that request. Please try again.