diff options
| author | qsm-odoo <qsm@odoo.com> | 2018-09-25 18:43:30 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2018-09-25 19:54:26 +0200 |
| commit | 502f45aa2d0292e2c5ba25d0cfc36ecdffc41ab5 (patch) | |
| tree | a7681a4932231916c95999f521e29bd58b9e3952 /addons/web_editor/static/src | |
| parent | 92c8645d62a4fb73fc0af1ce832e88e293b2a6d7 (diff) | |
[FIX] website(_event): make parallax filter change the default color
Setting a black low-transparency filter on a parallax element was
leaving the text color black too as the filter did not act as a
background color. Now the filter is computed from the parallax
background color.
Diffstat (limited to 'addons/web_editor/static/src')
| -rw-r--r-- | addons/web_editor/static/src/js/editor/snippets.options.js | 3 |
1 files changed, 3 insertions, 0 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 e9e3ae3a8f7..0be541713a4 100644 --- a/addons/web_editor/static/src/js/editor/snippets.options.js +++ b/addons/web_editor/static/src/js/editor/snippets.options.js @@ -835,6 +835,9 @@ registry.background = SnippetOption.extend({ * image is removed. */ bindBackgroundEvents: function () { + if (this.$target.is('.parallax, .s_parallax_bg')) { + return; + } this.$target.off('.background-option') .on('background-color-event.background-option', (function (e, previewMode) { e.stopPropagation(); |
