summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2014-06-19 12:19:30 +0200
committerChristophe Matthieu <chm@odoo.com>2014-06-19 12:19:30 +0200
commit14e29ce321afa6967892c1a93f39c6caab5081d7 (patch)
tree085e613bd808048f7bda2071948ddf610bf4e9e1 /addons/web/static/src
parent9f36a77b7b3832f84d1c181e114f89a5b47554ce (diff)
[FIX] tour.js: clear localStorage before testing; add a better log title
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/tour.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/js/tour.js b/addons/web/static/src/js/tour.js
index 4705fb80af8..14908e56f5e 100644
--- a/addons/web/static/src/js/tour.js
+++ b/addons/web/static/src/js/tour.js
@@ -122,7 +122,7 @@ var Tour = {
if (tour.steps[index-1] &&
tour.steps[index-1].popover && tour.steps[index-1].popover.next) {
var step = {
- _title: "",
+ _title: "close popover and finish",
id: index,
waitNot: '.popover.tour.fade.in:visible'
};
@@ -365,7 +365,7 @@ var Tour = {
Tour.registerSteps(state.tour);
Tour.nextStep();
} else {
- if (state.wait > 10) {
+ if (state.wait >= 10) {
Tour.error(state.step, "Tour '"+state.id+"' undefined");
}
Tour.saveState(state.id, state.mode, state.step_id, state.number-1, state.wait+1);