summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
diff options
context:
space:
mode:
authorSamuel Degueldre <sad@odoo.com>2019-12-24 08:02:03 +0000
committerSamuel Degueldre <sad@odoo.com>2019-12-31 13:25:21 +0000
commit6481d0b35316a21e5a182e5ec3d1bbf3814b26a4 (patch)
tree7134b46b479da4b7b0a7e79518d894af511e892c /addons/web_editor/static/src
parentde6589619beb168dbe6fc12158739eb6ad3e1a68 (diff)
[REF] website, *: remove unused class oe_custom_bg
*: web_editor, website_forum, website_mass_mailing, website_slides This class no longer does anything. Part of odoo/odoo#41561 task-2155808 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web_editor/static/src')
-rw-r--r--addons/web_editor/static/src/js/editor/snippets.options.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/web_editor/static/src/js/editor/snippets.options.js b/addons/web_editor/static/src/js/editor/snippets.options.js
index 02692c858af..f01e3ebd310 100644
--- a/addons/web_editor/static/src/js/editor/snippets.options.js
+++ b/addons/web_editor/static/src/js/editor/snippets.options.js
@@ -2360,10 +2360,10 @@ registry.background = SnippetOptionWidget.extend({
}
if (widgetValue) {
this.$target.css('background-image', `url('${widgetValue}')`);
- this.$target.removeClass('oe_custom_bg').addClass('oe_img_bg');
+ this.$target.addClass('oe_img_bg');
} else {
this.$target.css('background-image', '');
- this.$target.removeClass('oe_img_bg oe_custom_bg');
+ this.$target.removeClass('oe_img_bg');
}
},
@@ -2421,7 +2421,6 @@ registry.background = SnippetOptionWidget.extend({
_setCustomBackground: async function (value, previewMode) {
this.__customImageSrc = value;
this.background(false, this.__customImageSrc, {});
- this.$target.toggleClass('oe_custom_bg', !!value);
await new Promise(resolve => {
// Will update the UI of the correct widgets for all options
// related to the same $target/editor