From 08e6b980b6bfe96b8d7d9166a3444e084a1b65a9 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Wed, 26 Oct 2011 14:05:09 +0200 Subject: [PATCH] [FIX] onclick not going through correctly if set.toFront is called in onmousedown handler, in webkit-based browsers bzr revid: xmo@openerp.com-20111026120509-wmj3onhkrnps6xee --- addons/web_diagram/static/lib/js/dracula_graph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_diagram/static/lib/js/dracula_graph.js b/addons/web_diagram/static/lib/js/dracula_graph.js index df9945882a7..ff8ba3a423d 100644 --- a/addons/web_diagram/static/lib/js/dracula_graph.js +++ b/addons/web_diagram/static/lib/js/dracula_graph.js @@ -164,7 +164,7 @@ Graph.Renderer.Raphael = function(element, graph, width, height) { this.dx = e.clientX; this.dy = e.clientY; selfRef.isDrag = this; - this.set && this.set.animate({"fill-opacity": .1}, 200) && this.set.toFront(); + this.set && this.set.animate({"fill-opacity": .1}, 200); e.preventDefault && e.preventDefault(); } };