summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2014-11-17 16:04:57 +0100
committerJeremy Kersten <jke@odoo.com>2014-11-17 16:50:52 +0100
commit86a6619dc8cd473342b8fbbffb48363d154df416 (patch)
treee10af120c580fcee79ded177d1aaef91350ef25c
parent90b88e33cb0bd28425676ebef01768a224210782 (diff)
[FIX] website_forum: add fake tour for people waiting the tour. To remove in master. Without it, localstorage loop to search this unexisting tour after the install...
-rw-r--r--addons/website_forum/data/forum_data.xml1
-rw-r--r--addons/website_forum/static/src/js/website.tour.forum.js28
2 files changed, 6 insertions, 23 deletions
diff --git a/addons/website_forum/data/forum_data.xml b/addons/website_forum/data/forum_data.xml
index 379e746be4f..8099bc56569 100644
--- a/addons/website_forum/data/forum_data.xml
+++ b/addons/website_forum/data/forum_data.xml
@@ -19,6 +19,7 @@
<record id="action_open_forum" model="ir.actions.act_url">
<field name="name">Forum</field>
<field name="target">self</field>
+ <!-- TODO in master : remove the tutorial or create one tutorial forum -->
<field name="url" eval="'/forum/'+str(ref('website_forum.forum_help'))+'/#tutorial.forum=true'"/>
</record>
<record id="base.open_menu" model="ir.actions.todo">
diff --git a/addons/website_forum/static/src/js/website.tour.forum.js b/addons/website_forum/static/src/js/website.tour.forum.js
index b4ca841463d..009b9a58356 100644
--- a/addons/website_forum/static/src/js/website.tour.forum.js
+++ b/addons/website_forum/static/src/js/website.tour.forum.js
@@ -4,28 +4,10 @@
var website = openerp.website;
var _t = openerp._t;
- // 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();
- // }
- // });
+ openerp.Tour.register({
+ id: 'forum',
+ name: '',
+ steps : [{}],
+ });
}());