From bdafd44f06eefed2687a5f61fbce781600dae59e Mon Sep 17 00:00:00 2001 From: ddm Date: Wed, 20 Nov 2013 14:32:34 +0100 Subject: [PATCH] [IMP] Tour cleanup bzr revid: ddm@openerp.com-20131120133234-s0r81qnqg74l4wlt --- addons/website/static/src/js/website.tour.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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);