diff options
| author | Christophe Matthieu <chm@openerp.com> | 2014-02-10 15:59:23 +0100 |
|---|---|---|
| committer | Christophe Matthieu <chm@openerp.com> | 2014-02-10 15:59:23 +0100 |
| commit | abc49aebd5ab904c598c16374db17df65eb2e408 (patch) | |
| tree | 86d66cf16369ac335a2acb7cecbf0651fd2a2e80 /addons/website/static/src | |
| parent | 0da8cdda9046a15191b75374643c922ac66e98d3 (diff) | |
[FIX] website: don't set tour as automatic when reload page
bzr revid: chm@openerp.com-20140210145923-2w9vbxqqgewgkb0w
Diffstat (limited to 'addons/website/static/src')
| -rw-r--r-- | addons/website/static/src/js/website.tour.js | 6 |
1 files changed, 5 insertions, 1 deletions
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) { |
