Mercurial > kallithea
changeset 3535:2792019caf67 beta
Fixing graphs for IE9 and probably above.
author | Leonardo <leo@unity3d.com> |
---|---|
date | Thu, 07 Mar 2013 14:38:40 +0100 |
parents | 0700ca7f6a67 |
children | ed48d17836a4 |
files | rhodecode/public/js/graph.js |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/public/js/graph.js Wed Mar 06 17:29:23 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)';