summaryrefslogtreecommitdiff
path: root/addons/website/static/src
diff options
context:
space:
mode:
Diffstat (limited to 'addons/website/static/src')
-rw-r--r--addons/website/static/src/js/website.tour.js10
-rw-r--r--addons/website/static/src/xml/website.xml4
2 files changed, 7 insertions, 7 deletions
diff --git a/addons/website/static/src/js/website.tour.js b/addons/website/static/src/js/website.tour.js
index 2f13116d47c..464d72b2354 100644
--- a/addons/website/static/src/js/website.tour.js
+++ b/addons/website/static/src/js/website.tour.js
@@ -32,12 +32,12 @@
step.title = render('website.tour_title', { title: step.title });
return step;
}));
- if (!self.doNotContinue()) {
+ if (self.canResume()) {
self.tour.start();
}
},
- doNotContinue: function () {
- return this.currentStepIndex() > 0 || this.tour.ended();
+ canResume: function () {
+ return this.currentStepIndex() === 0 && !this.tour.ended();
},
currentStepIndex: function () {
return parseInt(this.tourStorage.getItem(this.id+'_current_step'), 10);
@@ -185,10 +185,10 @@
];
return this._super();
},
- doNotContinue: function () {
+ canResume: function () {
var currentStepIndex = this.currentStepIndex();
var secondPartIndex = this.indexOfStep('part-2');
- return currentStepIndex > 0 && currentStepIndex !== secondPartIndex;
+ return currentStepIndex === 0 || currentStepIndex === secondPartIndex;
}
});
diff --git a/addons/website/static/src/xml/website.xml b/addons/website/static/src/xml/website.xml
index a47449606bc..b3e4cacd32a 100644
--- a/addons/website/static/src/xml/website.xml
+++ b/addons/website/static/src/xml/website.xml
@@ -23,13 +23,13 @@
<li class="divider-vertical"></li>
<li><a data-action="promote-current-page" href="#"><span title="Promote page on the web">Promote</span></a></li>
<li class="dropdown">
- <a id="customize-menu-button" class="dropdown-toggle" data-toggle="dropdown" href="#">Customize<span class="caret"></span></a>
+ <a id="customize-menu-button" class="dropdown-toggle" data-toggle="dropdown" href="#">Customize <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu" id="customize-menu">
<!-- filled in JS -->
</ul>
</li>
<li class="dropdown">
- <a id="help-menu-button" class="dropdown-toggle" data-toggle="dropdown" href="#">Help<span class="caret"></span></a>
+ <a id="help-menu-button" class="dropdown-toggle" data-toggle="dropdown" href="#">Help <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu" id="help-menu">
<!-- filled in JS -->
</ul>