[FIX] tour: check if the tour is already finish before check next step

This commit is contained in:
Christophe Matthieu 2014-06-18 15:12:52 +02:00
parent fd0e0323ba
commit ffe8590183
1 changed files with 7 additions and 5 deletions

View File

@ -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(){