diff templates/coal/graph.tmpl @ 6733:936a9073bb73

graph: fix JavaScript issues to make it work on IE
author Benoit Allard <benoit@aeteurope.nl>
date Wed, 25 Jun 2008 20:50:40 +0200
parents 855851eae70f
children 54ccf41761c9
line wrap: on
line diff
--- a/templates/coal/graph.tmpl	Wed Jun 25 10:54:48 2008 +0200
+++ b/templates/coal/graph.tmpl	Wed Jun 25 20:50:40 2008 +0200
@@ -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) {