[FIX] website: don't set tour as automatic when reload page

bzr revid: chm@openerp.com-20140210145923-2w9vbxqqgewgkb0w
This commit is contained in:
Christophe Matthieu
2014-02-10 15:59:23 +01:00
parent 0da8cdda90
commit abc49aebd5
+5 -1
View File
@@ -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) {