Mercurial > kallithea
diff pylons_app/public/js/graph.js @ 293:68dc70295a76
Ie graph support.
+ some small html/tooltip changes
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 23 Jun 2010 20:46:32 +0200 |
parents | 1dbe02063123 |
children | 46b7d108ea7a |
line wrap: on
line diff
--- a/pylons_app/public/js/graph.js Wed Jun 23 18:14:27 2010 +0200 +++ b/pylons_app/public/js/graph.js Wed Jun 23 20:46:32 2010 +0200 @@ -25,8 +25,8 @@ this.canvas = document.getElementById("graph_canvas"); - //if ($.browser.msie) - // this.canvas = window.G_vmlCanvasManager.initElement(this.canvas); + if (navigator.userAgent.indexOf('MSIE') >= 0) + this.canvas = window.G_vmlCanvasManager.initElement(this.canvas); this.ctx = this.canvas.getContext('2d'); this.ctx.strokeStyle = 'rgb(0, 0, 0)'; this.ctx.fillStyle = 'rgb(0, 0, 0)';