2013-10-02 08:50:18 +00:00
|
|
|
(function () {
|
|
|
|
'use strict';
|
|
|
|
|
2014-06-18 10:25:13 +00:00
|
|
|
window.openerp.website.EditorBar.include({
|
|
|
|
tours: [],
|
|
|
|
start: function () {
|
|
|
|
var self = this;
|
|
|
|
var menu = $('#help-menu');
|
|
|
|
_.each(window.openerp.Tour.tours, function (tour) {
|
|
|
|
if (tour.mode === "test") {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
var $menuItem = $($.parseHTML('<li><a href="#">'+tour.name+'</a></li>'));
|
|
|
|
$menuItem.click(function () {
|
2014-06-27 09:03:34 +00:00
|
|
|
openerp.Tour.reset();
|
|
|
|
openerp.Tour.run(tour.id);
|
2013-10-07 12:07:43 +00:00
|
|
|
});
|
2014-06-18 10:25:13 +00:00
|
|
|
menu.append($menuItem);
|
|
|
|
});
|
|
|
|
return this._super();
|
2014-01-30 21:00:01 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2014-06-27 09:03:34 +00:00
|
|
|
})();
|