From 2abe5f31392571030cf9e4c4c0a35ed449a74fca Mon Sep 17 00:00:00 2001 From: ddm Date: Tue, 26 Nov 2013 15:38:51 +0100 Subject: [PATCH] My bad... bzr revid: ddm@openerp.com-20131126143851-b1m3fsgdde8a2x0p --- addons/website/static/src/js/website.tour.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/addons/website/static/src/js/website.tour.js b/addons/website/static/src/js/website.tour.js index 71fd1eb095d..403951dcc1d 100644 --- a/addons/website/static/src/js/website.tour.js +++ b/addons/website/static/src/js/website.tour.js @@ -15,14 +15,6 @@ keyboard: false, template: this.popover(), }); - }, - reset: function () { - this.tourStorage.removeItem(this.id+'_current_step'); - this.tourStorage.removeItem(this.id+'_end'); - this.tour._current = 0; - $('.popover.tour').remove(); - }, - start: function () { var self = this; this.tour.addSteps(_.map(this.steps, function (step) { step.title = openerp.qweb.render('website.tour_popover_title', { title: step.title }); @@ -48,6 +40,14 @@ } return step; })); + }, + reset: function () { + this.tourStorage.removeItem(this.id+'_current_step'); + this.tourStorage.removeItem(this.id+'_end'); + this.tour._current = 0; + $('.popover.tour').remove(); + }, + start: function () { if (this.resume() || ((this.currentStepIndex() === 0) && !this.tour.ended())) { this.tour.start(); }