summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/tour.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2015-05-26 17:34:04 +0200
committerChristophe Simonis <chs@odoo.com>2015-05-28 14:27:38 +0200
commitfe2b5f35a40ca8df662130608b0f89427a196362 (patch)
tree0c7773f0599f3b1e6dbb869104fad0b04869b269 /addons/web/static/src/js/tour.js
parentd4d8a2eae31e7a6a45029b84603e055300e3be36 (diff)
parentbf1e99964cdbc374f8a0c4cec1b338bf7c7c2930 (diff)
[MERGE] forward port of branch saas-6 up to bf1e999
Diffstat (limited to 'addons/web/static/src/js/tour.js')
-rw-r--r--addons/web/static/src/js/tour.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/addons/web/static/src/js/tour.js b/addons/web/static/src/js/tour.js
index ea64a55f22c..234b681f7d2 100644
--- a/addons/web/static/src/js/tour.js
+++ b/addons/web/static/src/js/tour.js
@@ -76,6 +76,7 @@ var localStorage = window.localStorage;
var Tour = {
tours: {},
defaultDelay: 50,
+ autoRunning: true,
retryRunningDelay: 1000,
errorDelay: 5000,
state: null,
@@ -378,6 +379,7 @@ var Tour = {
},
logError: function (step, message, all) {
var state = Tour.getState();
+ console.log(state.tour.steps.slice());
message += '\ntour: ' + state.id
+ (step ? '\nstep: ' + step.id + ": '" + (step._title || step.title) + "'" : '' )
+ (all ? '\nhref: ' + window.location.href : '' )
@@ -711,7 +713,11 @@ var Tour = {
/////////////////////////////////////////////////
-$(document).ready(Tour.running);
+$(document).ready(function () {
+ if (Tour.autoRunning) {
+ Tour.running();
+ };
+});
return Tour;