[FIX] website_forum: disable the tour as it is not implemented

and seems to make other tours crash.

bzr revid: tde@openerp.com-20140411154150-4tn3bfe7wp8n901d
This commit is contained in:
Thibault Delavallée 2014-04-11 17:41:50 +02:00
parent 56d8d0afb6
commit 5a402ce73a
1 changed files with 22 additions and 22 deletions

View File

@ -4,28 +4,28 @@
var website = openerp.website;
var _t = openerp._t;
website.EditorBar.include({
start: function () {
this.registerTour(new website.Tour.Forum(this));
return this._super();
},
});
// website.EditorBar.include({
// start: function () {
// this.registerTour(new website.Tour.Forum(this));
// return this._super();
// },
// });
website.Tour.Forum = website.Tour.extend({
id: 'question',
name: "Create a question",
testPath: '/forum(/[0-9]+/register)?',
init: function (editor) {
var self = this;
self.steps = [
{
title: _t("Create a question"),
content: _t("Let's go through the first steps to create a new question."),
popover: { next: _("Start Tutorial"), end: _("Skip It") },
},
];
return this._super();
}
});
// website.Tour.Forum = website.Tour.extend({
// id: 'question',
// name: "Create a question",
// testPath: '/forum(/[0-9]+/register)?',
// init: function (editor) {
// var self = this;
// self.steps = [
// {
// title: _t("Create a question"),
// content: _t("Let's go through the first steps to create a new question."),
// popover: { next: _("Start Tutorial"), end: _("Skip It") },
// },
// ];
// return this._super();
// }
// });
}());