Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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 17237ff we already used `.attr('src')`. opw-2215103 closes odoo#47797 Signed-off-by: Nicolas Lempereur (nle) <[email protected]>
- Loading branch information