[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.
This commit is contained in:
Christophe Matthieu
2016-08-25 15:13:43 +02:00
committed by qsm-odoo
parent 0c2767c892
commit f883022cc8
@@ -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) {