Permalink
Browse files

fix CHANGES_URL decleration

      - CHANGES_URL is used by timeline.js via window.CHANGES_URL.
        Thus timeline.js has to be loaded after the decleration in
        the template file.

Change-Id: I1c95417472b2b728593fcbb7328d950b76f8c6df
  • Loading branch information...
1 parent 6140c07 commit 6edb48f02f9aedb7f34ef51c97dad1f2f73e5073 @a8 a8 committed Aug 16, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 codespeed/templates/codespeed/timeline.html
@@ -101,11 +101,11 @@
<script type="text/javascript" src="{{ STATIC_URL }}js/jqplot/jqplot.categoryAxisRenderer.min.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/jqplot/jqplot.canvasTextRenderer.min.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/jqplot/jqplot.canvasAxisLabelRenderer.min.js"></script>
-<script type="text/javascript" src="{{ STATIC_URL }}js/timeline.js"></script>
-
<script type="text/javascript">
var CHANGES_URL = "{% url changes %}";
-
+</script>
+<script type="text/javascript" src="{{ STATIC_URL }}js/timeline.js"></script>
+<script type="text/javascript">
$(function() {
Timeline.init({
revisions: {{ defaultlast }},

0 comments on commit 6edb48f

Please sign in to comment.