diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2020-03-17 11:13:09 +0000 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2020-03-18 08:55:07 +0000 |
| commit | 375179ed54c502e9c31295691252015b5bcfe6c4 (patch) | |
| tree | 71fb828fd3d1f81c8487af1995c310e5a5622809 /addons/web/static/src/js/views/basic/basic_renderer.js | |
| parent | 6a4076e4a7168aee5c0b389da5beb3d35b4b9ea8 (diff) | |
[FIX] web_editor: relative URL in background snippet
When the backround is set with the media modal, directly get the URL of
the IMG element (equivalent to `.getAttribute('src')`) instead of doing
`.src` which returns absolute URI.
This fix uses jQuery wrapper so it still works if called with object:
$({src: 'test.jpg'}).attr('src') === 'test.jpg'
note: before 17237ff31 we already used `.attr('src')`.
opw-2215103
closes #47797
closes odoo/odoo#47872
X-original-commit: f04133d24b2271c0bc465f1628281b19d3656271
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_renderer.js')
0 files changed, 0 insertions, 0 deletions
