summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/editor
diff options
context:
space:
mode:
authorSamuel Degueldre <sad@odoo.com>2019-10-24 13:15:55 +0000
committerqsm-odoo <qsm@odoo.com>2019-11-18 09:56:40 +0000
commitdfd98f49e7f2ab5c94dcae3af2d14750d301fa0a (patch)
tree80515984c7819fd3d80503ff54cf37a034c27c8a /addons/website/static/src/js/editor
parent01debf53f676e415241e4b2db0087e30eb1f0e8e (diff)
[IMP] web_editor: rework background-sizing option
Previously, background size and position for snippets was configured in a modal, the user could choose a "focus point", which is rather unintuitive. They could also choose to use the "contain" background mode, with or without repeat, or a third option, where they could customize everything, from the background size in both directions to whether to repeat the background in only one or in both directions. This commit streamlines the background-sizing options, only the "cover" and "repeat pattern" options have been kept, as they cover almost every use case. Their configuration has been moved into the options menu for consistency with the rest of the editor, and the background's position is now chosen by clicking on the corresponding menu option, and dragging the background to the desired place. Part of https://github.com/odoo/odoo/pull/38959 maintask-2066614 task-2088304
Diffstat (limited to 'addons/website/static/src/js/editor')
-rw-r--r--addons/website/static/src/js/editor/snippets.options.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website/static/src/js/editor/snippets.options.js b/addons/website/static/src/js/editor/snippets.options.js
index c1af7852fd2..bf7960cc13d 100644
--- a/addons/website/static/src/js/editor/snippets.options.js
+++ b/addons/website/static/src/js/editor/snippets.options.js
@@ -674,7 +674,7 @@ options.registry.parallax = options.Class.extend({
*/
onFocus: function () {
this.trigger_up('option_update', {
- optionNames: ['background', 'background_position'],
+ optionNames: ['background', 'BackgroundPosition'],
name: 'target',
data: this.$target.find('> .s_parallax_bg'),
});