summaryrefslogtreecommitdiff
path: root/addons/website_forum/static/src
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2018-12-11 16:48:06 +0000
committerqsm-odoo <qsm@odoo.com>2019-02-26 17:02:59 +0000
commit7b960c66bb6cfdcd835f127fff4161e72c324380 (patch)
treed1ad7e4a13f7b5d8705e244a8abeb0761e5bc3ab /addons/website_forum/static/src
parentdd2ba3c4f3928adc760a1f0c4f11016723504d76 (diff)
[REF] website, web, *: move part of website into web
* im_livechat, survey, website_forum When website is installed, the JavaScript code has access to utilities to define improved widgets which are automatically attached to existing DOM elements on page load. Those mechanics are more and more needed in portal which does not depend on website (as it is website which depends on portal). This commit moves part of website JS to web, so that it can be used by all 'frontend' apps whose only common dependency is web (portal, survey, auth_signup, ...). This PR also questioned several other similar issues which will be handled later like: - website should maybe not depends on portal but only on http_routing - part of portal should be moved to http_routing and http_routing should be renamed (especially for frontend layouts, etc) so that apps like survey can reuse some common code Part of https://github.com/odoo/odoo/pull/29442 task-1932066
Diffstat (limited to 'addons/website_forum/static/src')
-rw-r--r--addons/website_forum/static/src/js/website_forum.editor.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/addons/website_forum/static/src/js/website_forum.editor.js b/addons/website_forum/static/src/js/website_forum.editor.js
index f9e03422119..870878f0331 100644
--- a/addons/website_forum/static/src/js/website_forum.editor.js
+++ b/addons/website_forum/static/src/js/website_forum.editor.js
@@ -2,10 +2,8 @@ odoo.define('website_forum.editor', function (require) {
"use strict";
var core = require('web.core');
-var Widget = require('web.Widget');
var WebsiteNewMenu = require('website.newMenu');
var wUtils = require('website.utils');
-var websiteRootData = require('website.WebsiteRoot');
var _t = core._t;
@@ -62,5 +60,4 @@ WebsiteNewMenu.include({
});
},
});
-
});