[FIX] Avoid reserved keywords as method names
bzr revid: ddm@openerp.com-20131121114922-w731pvjnnvqzxu42
This commit is contained in:
parent
135345bf2a
commit
56e19c374f
|
@ -127,7 +127,7 @@
|
|||
];
|
||||
return this._super();
|
||||
},
|
||||
continue: function () {
|
||||
resume: function () {
|
||||
return (this.isCurrentStep('part-2') || this.isCurrentStep('show-tutorials')) && !this.tour.ended();
|
||||
},
|
||||
});
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
$('.popover.tour').remove();
|
||||
},
|
||||
start: function () {
|
||||
if (this.continue() || ((this.currentStepIndex() === 0) && !this.tour.ended())) {
|
||||
if (this.resume() || ((this.currentStepIndex() === 0) && !this.tour.ended())) {
|
||||
this.tour.start();
|
||||
}
|
||||
},
|
||||
|
@ -68,7 +68,7 @@
|
|||
window.location.replace(newUrl);
|
||||
}
|
||||
},
|
||||
continue: function () {
|
||||
resume: function () {
|
||||
// Override if necessary
|
||||
return this.currentStepIndex() === 0;
|
||||
},
|
||||
|
|
|
@ -107,11 +107,11 @@
|
|||
];
|
||||
return this._super();
|
||||
},
|
||||
continue: function () {
|
||||
resume: function () {
|
||||
return this.isCurrentStep('post-page') && !this.tour.ended();
|
||||
},
|
||||
trigger: function () {
|
||||
return (this.continue() && this.testUrl(/^\/blog\/[0-9]+\/\?enable_editor=1/)) || this._super();
|
||||
return (this.resume() && this.testUrl(/^\/blog\/[0-9]+\/\?enable_editor=1/)) || this._super();
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
@ -74,11 +74,11 @@
|
|||
];
|
||||
return this._super();
|
||||
},
|
||||
continue: function () {
|
||||
resume: function () {
|
||||
return this.isCurrentStep('event-page') && !this.tour.ended();
|
||||
},
|
||||
trigger: function () {
|
||||
return (this.continue() && this.testUrl(/^\/event\/[0-9]+\/\?enable_editor=1/)) || this._super();
|
||||
return (this.resume() && this.testUrl(/^\/event\/[0-9]+\/\?enable_editor=1/)) || this._super();
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
@ -83,11 +83,11 @@
|
|||
];
|
||||
return this._super();
|
||||
},
|
||||
continue: function () {
|
||||
resume: function () {
|
||||
return this.isCurrentStep('product-page') && !this.tour.ended();
|
||||
},
|
||||
trigger: function (url) {
|
||||
return (this.continue() && this.testUrl(/^\/shop\/product\/[0-9]+\/\?enable_editor=1/)) || this._super();
|
||||
return (this.resume() && this.testUrl(/^\/shop\/product\/[0-9]+\/\?enable_editor=1/)) || this._super();
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue