[IMP] Tour cleanup

bzr revid: ddm@openerp.com-20131120133234-s0r81qnqg74l4wlt
This commit is contained in:
ddm
2013-11-20 14:32:34 +01:00
parent aa2208f580
commit bdafd44f06
+1 -4
View File
@@ -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);