From abc49aebd5ab904c598c16374db17df65eb2e408 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Mon, 10 Feb 2014 15:59:23 +0100 Subject: [PATCH] [FIX] website: don't set tour as automatic when reload page bzr revid: chm@openerp.com-20140210145923-2w9vbxqqgewgkb0w --- addons/website/static/src/js/website.tour.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/website/static/src/js/website.tour.js b/addons/website/static/src/js/website.tour.js index 408a4c01539..8b1284f0a07 100644 --- a/addons/website/static/src/js/website.tour.js +++ b/addons/website/static/src/js/website.tour.js @@ -77,7 +77,11 @@ website.Tour = openerp.Class.extend({ website.Tour.busy = true; - this.localStorage.setItem("tour-"+this.id+"-test-automatic", automatic); + if (automatic) { + this.localStorage.setItem("tour-"+this.id+"-test-automatic", true); + } else { + this.localStorage.removeItem("tour-"+this.id+"-test-automatic"); + } this.automatic = automatic; if (this.path) {