[IMP] Minor tour refactoring

bzr revid: ddm@openerp.com-20131114155634-05ov5cy1up6ip6ly
This commit is contained in:
ddm
2013-11-14 16:56:34 +01:00
parent 883fbec65e
commit d0b7ecadf8
3 changed files with 10 additions and 11 deletions
@@ -151,10 +151,6 @@
if (url.search.indexOf('?tutorial=true') === 0 || bannerTour.startOfPart2()) {
bannerTour.start();
}
$('.tour-backdrop').click(function (e) {
e.stopImmediatePropagation();
e.preventDefault();
});
return this._super();
},
});
@@ -23,9 +23,6 @@
];
return this._super();
},
canResume: function () {
return this._super();
},
});
website.EditorBar.include({
@@ -38,10 +35,6 @@
builderTour.start();
});
menu.append($menuItem);
$('.tour-backdrop').click(function (e) {
e.stopImmediatePropagation();
e.preventDefault();
});
return this._super();
},
});
@@ -98,4 +98,14 @@
},
});
website.EditorBar.include({
start: function () {
$('.tour-backdrop').click(function (e) {
e.stopImmediatePropagation();
e.preventDefault();
});
return this._super();
},
});
}());