From f883022cc8faecb8a8ba497d7834e675a98126c8 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Tue, 9 Aug 2016 16:54:01 +0200 Subject: [PATCH] [FIX] web_tour: better simulate a click while running Previous simulation was "mousedown" then "mouseup" then "click". It is not enough for some feature (like bootstrap, web_editor...). These rely to have a "mouseenter" before and a "mouseleave" after the click. --- addons/web_tour/static/src/js/tour_manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_tour/static/src/js/tour_manager.js b/addons/web_tour/static/src/js/tour_manager.js index f0389491046..045625208b7 100644 --- a/addons/web_tour/static/src/js/tour_manager.js +++ b/addons/web_tour/static/src/js/tour_manager.js @@ -55,7 +55,7 @@ var RunningTourActionHelper = core.Class.extend({ if (href && href.length && href[0] !== "#" && values.$element.is("a") && href !== "javascript:void(0)") { window.location.href = href; } else { - values.$element.mousedown().mouseup().click(); + values.$element.trigger("mouseenter").mousedown().mouseup().click().trigger("mouseleave"); } }, _text: function (values, text) {