summaryrefslogtreecommitdiff
path: root/addons/website/static/src
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/static/src
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/static/src')
-rw-r--r--addons/website/static/src/js/html_editor.test.js3
-rw-r--r--addons/website/static/src/js/tours/banner.js4
-rw-r--r--addons/website/static/src/js/tours/customize.js2
3 files changed, 0 insertions, 9 deletions
diff --git a/addons/website/static/src/js/html_editor.test.js b/addons/website/static/src/js/html_editor.test.js
index 99f93eb069a..a7eda78f6ef 100644
--- a/addons/website/static/src/js/html_editor.test.js
+++ b/addons/website/static/src/js/html_editor.test.js
@@ -2,12 +2,10 @@ odoo.define('website.test.html_editor', function (require) {
'use strict';
var tour = require('web_tour.tour');
-var base = require('web_editor.base');
tour.register('html_editor_multiple_templates', {
test: true,
url: '/aboutus',
- wait_for: base.ready(),
},
[
// 1. Edit the page through Edit Mode, it will COW the view
@@ -77,7 +75,6 @@ tour.register('html_editor_multiple_templates', {
tour.register('test_html_editor_scss', {
test: true,
url: '/aboutus',
- wait_for: base.ready(),
},
[
// 1. Open Html Editor and select a scss file
diff --git a/addons/website/static/src/js/tours/banner.js b/addons/website/static/src/js/tours/banner.js
index 1d3951b06c1..5febdf1c749 100644
--- a/addons/website/static/src/js/tours/banner.js
+++ b/addons/website/static/src/js/tours/banner.js
@@ -3,13 +3,11 @@ odoo.define("website.tour.banner", 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("banner", {
url: "/",
- wait_for: base.ready(),
}, [{
trigger: "a[data-action=edit]",
content: _t("<b>Click Edit</b> to start designing your homepage."),
@@ -88,12 +86,10 @@ odoo.define("website.tour.contact", 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("contact", {
url: "/page/contactus",
- wait_for: base.ready(),
}, [{
trigger: "li#customize-menu",
content: _t("<b>Install a contact form</b> to improve this page."),
diff --git a/addons/website/static/src/js/tours/customize.js b/addons/website/static/src/js/tours/customize.js
index c1e1f185f2c..5ea83f84ed3 100644
--- a/addons/website/static/src/js/tours/customize.js
+++ b/addons/website/static/src/js/tours/customize.js
@@ -3,13 +3,11 @@ odoo.define('website.tour.customize', 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('theme_customize', {
url: '/',
- wait_for: base.ready(),
}, [{
trigger: 'button.o_theme_customize_color_primary, button.o_theme_customize_color_alpha',
content: _t("Click here to choose your main branding color.<br/>It will recompute the palette with suggested matching colors."),