[FIX] minor tour fixes

bzr revid: ddm@openerp.com-20131002091634-o6swg2nk0nkjokdx
This commit is contained in:
ddm 2013-10-02 11:16:34 +02:00
parent 5f7004c296
commit 74a74929a7
1 changed files with 2 additions and 3 deletions

View File

@ -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 () {