My bad...

bzr revid: ddm@openerp.com-20131126143851-b1m3fsgdde8a2x0p
This commit is contained in:
ddm
2013-11-26 15:38:51 +01:00
parent 09a54b25de
commit 2abe5f3139
+8 -8
View File
@@ -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();
}