[IMP] Tour cleanup
bzr revid: ddm@openerp.com-20131120133234-s0r81qnqg74l4wlt
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user