summaryrefslogtreecommitdiff
path: root/addons/website_mass_mailing/static
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2019-02-07 16:41:52 +0000
committerqsm-odoo <qsm@odoo.com>2019-02-26 17:09:22 +0000
commit335a505d1f9b6a978c0fe0f6ea760a45b0d0a67f (patch)
tree208507b876971e1b8a4f25077a16262e3a95dfcd /addons/website_mass_mailing/static
parent27fca749af30d7dce448f6632132422df8d8a7c1 (diff)
[REF] website, *: move and review the notion of edit mode
* portal, sale, web, website_blog, website_crm_partner_assign, website_forum, website_event_track, website_links, website_mail, website_slides, website_mail_channel, website_mass_mailing, website_sale, website_sale_comparison, website_sale_delivery, website_sale_wishlist The `editableMode` option and its related options in public widget should only be part of website, this commit moves them there. This is also the occasion to implement something that is long overdue: stop creating 'animations' / public widgets in edit mode by default. Indeed, lots of 'animations' were defined by beginning with 'if not edit mode'. Now, if a public widget should be considered in edit mode, it must be defined explicitely through a property at *definition* of the widget. Part of https://github.com/odoo/odoo/pull/29442 task-1932066
Diffstat (limited to 'addons/website_mass_mailing/static')
-rw-r--r--addons/website_mass_mailing/static/src/js/website_mass_mailing.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/website_mass_mailing/static/src/js/website_mass_mailing.js b/addons/website_mass_mailing/static/src/js/website_mass_mailing.js
index e30f824693d..66a260264eb 100644
--- a/addons/website_mass_mailing/static/src/js/website_mass_mailing.js
+++ b/addons/website_mass_mailing/static/src/js/website_mass_mailing.js
@@ -6,6 +6,8 @@ var sAnimation = require('website.content.snippets.animation');
sAnimation.registry.subscribe = sAnimation.Class.extend({
selector: ".js_subscribe",
+ disabledInEditableMode: false,
+
start: function () {
var self = this;
@@ -65,6 +67,8 @@ sAnimation.registry.subscribe = sAnimation.Class.extend({
sAnimation.registry.newsletter_popup = sAnimation.Class.extend({
selector: ".o_newsletter_popup",
+ disabledInEditableMode: false,
+
start: function () {
var self = this;