[FIX] Tour should not start 'uninvited'

bzr revid: ddm@openerp.com-20131212102807-ra4uon05udtp5twu
This commit is contained in:
ddm
2013-12-12 11:28:07 +01:00
parent dfe3ca1172
commit 76b5bef5fb
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -147,7 +147,7 @@
},
resume: function () {
// Override if necessary
return !this.ended();
return this.tourStorage.getItem(this.id+'_current_step') && !this.ended();
},
trigger: function (url) {
// Override if necessary
@@ -140,7 +140,8 @@
stepId: 'congratulations',
title: "Congratulations",
content: "Congratulations! You just created and published your first product.",
template: self.popover({ end: "Ok" }),
template: self.popover({ end: "Close Tutorial" }),
backdrop: true,
},
];
return this._super();