Mercurial > kallithea
diff rhodecode/public/js/graph.js @ 3504:729859bd1e6a beta
Fixing graphs for IE9 and probably above.
author | Leonardo <leo@unity3d.com> |
---|---|
date | Thu, 07 Mar 2013 14:38:40 +0100 |
parents | bd97aba292f1 |
children | 6e8027c2f49c |
line wrap: on
line diff
--- a/rhodecode/public/js/graph.js Thu Mar 07 15:23:36 2013 +0100 +++ b/rhodecode/public/js/graph.js Thu Mar 07 14:38:40 2013 +0100 @@ -26,7 +26,7 @@ this.canvas = document.getElementById("graph_canvas"); - if (navigator.userAgent.indexOf('MSIE') >= 0) + if (!document.createElement("canvas").getContext) this.canvas = window.G_vmlCanvasManager.initElement(this.canvas); this.ctx = this.canvas.getContext('2d'); this.ctx.strokeStyle = 'rgb(0, 0, 0)';