changeset 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 7adeca7b99c2
children 42e5812b956e
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	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)';