summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/editor/snippets.options.js
diff options
context:
space:
mode:
authorxO-Tx <mou@odoo.com>2020-10-29 18:13:27 +0000
committerqsm-odoo <qsm@odoo.com>2020-11-03 12:37:24 +0000
commitfab31e378d2069ff6f2bd18365de2f116a43b872 (patch)
tree0db522f2c01736a4b140a7c0fb16519c59e1b2c2 /addons/website/static/src/js/editor/snippets.options.js
parent5488916657f9cd4041abdcbe3fc615174df6cb49 (diff)
[FIX] web_editor, website: restore footer visibility option
Making the footer visible after having made it disappear was not possible anymore because of [1]. Part of https://github.com/odoo/odoo/pull/59624 task-2312878 [1]: https://github.com/odoo/odoo/commit/61ffe97d03deae0aee72568311c453d1cd3470c8 closes odoo/odoo#59624 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/website/static/src/js/editor/snippets.options.js')
-rw-r--r--addons/website/static/src/js/editor/snippets.options.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/website/static/src/js/editor/snippets.options.js b/addons/website/static/src/js/editor/snippets.options.js
index 4a0173e1127..9b2940fcdf0 100644
--- a/addons/website/static/src/js/editor/snippets.options.js
+++ b/addons/website/static/src/js/editor/snippets.options.js
@@ -795,7 +795,7 @@ options.registry.OptionsTab = options.Class.extend({
// TODO improve: hack to click on external image picker
this.bodyImageType = widgetValue;
const widget = this._requestUserValueWidgets(params.imagepicker)[0];
- widget.$el.click();
+ widget.enable();
},
/**
* @override
@@ -1631,7 +1631,7 @@ options.registry.Parallax = options.Class.extend({
// The parallax option was enabled but the background image was
// removed: disable the parallax option.
const widget = this._requestUserValueWidgets('parallax_none_opt')[0];
- widget.$el.click();
+ widget.enable();
widget.getParent().close(); // FIXME remove this ugly hack asap
}
},
@@ -1778,7 +1778,7 @@ const VisibilityPageOptionUpdate = options.Class.extend({
// toggled (otherwise it would be about editing an element which
// is actually never displayed on the page).
const widget = this._requestUserValueWidgets(this.showOptionWidgetName)[0];
- widget.$el.click();
+ widget.enable();
},
//--------------------------------------------------------------------------