summaryrefslogtreecommitdiff
path: root/addons/website_forum/static/src/js
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2019-02-13 16:59:37 +0000
committerqsm-odoo <qsm@odoo.com>2019-02-27 10:02:46 +0000
commitda1899af48902edec7ac6ed8dd5ae2f8b02ec689 (patch)
treee3c94af3f64d85a6eacfdec1ba211d55cf100e73 /addons/website_forum/static/src/js
parenta80775ce3c7d098cf4b9524a1a38607d50d63d2c (diff)
[REF] *: definitely get rid of web_editor.base
* portal, sale, website, website_blog, website_crm, website_event, website_event_sale, website_forum, website_hr_recruitment, website_sale, website_sale_wishlist At last, that ugly JS module can be removed. Before this current PR, it was still used to wait for "page ready", to initialize widgets on page loading. Now, all can be done thanks to public root and public widgets. web_editor.base was also still used in tours, which should not be necessary anymore for the same reason, especially since the tour manager waits for the public root naturally. Part of https://github.com/odoo/odoo/pull/29442 task-1932066
Diffstat (limited to 'addons/website_forum/static/src/js')
-rw-r--r--addons/website_forum/static/src/js/website_tour_forum.js2
-rw-r--r--addons/website_forum/static/src/js/website_tour_forum_question.js2
2 files changed, 0 insertions, 4 deletions
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 560de25d451..f93bfa48631 100644
--- a/addons/website_forum/static/src/js/website_tour_forum.js
+++ b/addons/website_forum/static/src/js/website_tour_forum.js
@@ -3,13 +3,11 @@ odoo.define("website_forum.tour_forum", function (require) {
var core = require("web.core");
var tour = require("web_tour.tour");
- var base = require("web_editor.base");
var _t = core._t;
tour.register("question", {
url: "/",
- wait_for: base.ready(),
}, [tour.STEPS.WEBSITE_NEW_PAGE, {
trigger: "a[data-action=new_forum]",
content: _t("Select this menu item to create a new forum."),
diff --git a/addons/website_forum/static/src/js/website_tour_forum_question.js b/addons/website_forum/static/src/js/website_tour_forum_question.js
index 57b94a3eb43..93f22a05e1f 100644
--- a/addons/website_forum/static/src/js/website_tour_forum_question.js
+++ b/addons/website_forum/static/src/js/website_tour_forum_question.js
@@ -2,12 +2,10 @@ odoo.define('website_forum.tour_forum_question', function (require) {
'use strict';
var tour = require("web_tour.tour");
- var base = require("web_editor.base");
tour.register('forum_question', {
test: true,
url: '/forum/help-1',
- wait_for: base.ready(),
}, [{
content: "Ask the question in this forum by clicking on the button.",
trigger: '.btn-lg.btn-block',