From 74a74929a719bce6fd07cdb31bb4606e2dc8a865 Mon Sep 17 00:00:00 2001 From: ddm Date: Wed, 2 Oct 2013 11:16:34 +0200 Subject: [PATCH] [FIX] minor tour fixes bzr revid: ddm@openerp.com-20131002091634-o6swg2nk0nkjokdx --- addons/website/static/src/js/website.tour.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/addons/website/static/src/js/website.tour.js b/addons/website/static/src/js/website.tour.js index f218572120b..b3a13f6597a 100644 --- a/addons/website/static/src/js/website.tour.js +++ b/addons/website/static/src/js/website.tour.js @@ -106,14 +106,13 @@ _.each(this.observers, function (observer) { observer.disconnect(); }); - tourStorage.setItem("tour_current_step", 0); - tourStorage.setItem("tour_end", "yes"); }, }); website.EditorBar.include({ start: function () { - if (window.location.href.indexOf("tour=true") >= 0 && tourStorage.getItem("tour_end") !== "yes") { + if (window.location.hash.indexOf("tour") >= 0) { + window.location.hash = ""; var editorTour = new website.EditorTour(); editorTour.start(); this.on('rte:ready', this, function () {