diff --git a/addons/website/static/src/js/website.tour.js b/addons/website/static/src/js/website.tour.js index 60bbf2487b9..25317f06aac 100644 --- a/addons/website/static/src/js/website.tour.js +++ b/addons/website/static/src/js/website.tour.js @@ -32,13 +32,10 @@ $('.popover.tour').remove(); }, start: function () { - if (this.canResume()) { + if (this.continueTour() || ((this.currentStepIndex() === 0) && !this.tour.ended())) { this.tour.start(); } }, - canResume: function () { - return this.continueTour() || ((this.currentStepIndex() === 0) && !this.tour.ended()); - }, currentStepIndex: function () { var index = this.tourStorage.getItem(this.id+'_current_step') || 0; return parseInt(index, 10);