From ffe85901831f3e15b439362c4ca6ad0095eecfa3 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Wed, 18 Jun 2014 15:12:52 +0200 Subject: [PATCH] [FIX] tour: check if the tour is already finish before check next step --- addons/web/static/src/js/tour.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/addons/web/static/src/js/tour.js b/addons/web/static/src/js/tour.js index 7e4eabeedda..2289162732e 100644 --- a/addons/web/static/src/js/tour.js +++ b/addons/web/static/src/js/tour.js @@ -446,12 +446,14 @@ var Tour = { if (next) { setTimeout(function () { + if (Tour.getState()) { Tour.waitNextStep(); - if (state.mode === "test") { - setTimeout(function(){ - Tour.autoNextStep(state.tour, step); - }, Tour.defaultDelay); - } + } + if (state.mode === "test") { + setTimeout(function(){ + Tour.autoNextStep(state.tour, step); + }, Tour.defaultDelay); + } }, next.wait || 0); } else { setTimeout(function(){