diff --git a/templates/coal/graph.tmpl b/templates/coal/graph.tmpl --- a/templates/coal/graph.tmpl +++ b/templates/coal/graph.tmpl @@ -54,8 +54,8 @@ document.getElementById('noscript').style.display = 'none'; -data = {jsdata|json}; -graph = new Graph(); +var data = {jsdata|json}; +var graph = new Graph(); graph.scale({bg_height}); graph.edge = function(x0, y0, x1, y1, color) { diff --git a/templates/gitweb/graph.tmpl b/templates/gitweb/graph.tmpl --- a/templates/gitweb/graph.tmpl +++ b/templates/gitweb/graph.tmpl @@ -46,8 +46,8 @@ graph | document.getElementById('noscript').style.display = 'none'; -data = {jsdata|json}; -graph = new Graph(); +var data = {jsdata|json}; +var graph = new Graph(); graph.scale({bg_height}); graph.edge = function(x0, y0, x1, y1, color) { diff --git a/templates/graph.tmpl b/templates/graph.tmpl --- a/templates/graph.tmpl +++ b/templates/graph.tmpl @@ -4,6 +4,7 @@ href="#url#atom-tags" title="Atom feed for #repo|escape#: tags"> + @@ -39,8 +40,8 @@ navigate: #chang document.getElementById('noscript').style.display = 'none'; -data = {jsdata|json}; -graph = new Graph(); +var data = {jsdata|json}; +var graph = new Graph(); graph.scale({bg_height}); graph.edge = function(x0, y0, x1, y1, color) {