summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/editor/snippets.options.js
diff options
context:
space:
mode:
authorBenjamin Vray <bvr@odoo.com>2020-09-08 14:33:04 +0000
committerBenjamin Vray <bvr@odoo.com>2020-09-23 11:14:48 +0000
commit148a2b1eb9d6186bc008056570c3f9230babff2a (patch)
treefc6a160c757012ac4ee82694716ce62a93e35844 /addons/web_editor/static/src/js/editor/snippets.options.js
parent2c94c4c81ffa171158586cd64828d27c537cd1d6 (diff)
[FIX] web_editor: fix overlay on image changed
Before this commit the overlay of an image was not updated when the image was replaced by another. task-2312878 closes odoo/odoo#58328 X-original-commit: d4641b5bdc2b05523e29fb87a3b953dea90fbd8a Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web_editor/static/src/js/editor/snippets.options.js')
-rw-r--r--addons/web_editor/static/src/js/editor/snippets.options.js1
1 files changed, 1 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 40cfe0ebf93..671f973a0a9 100644
--- a/addons/web_editor/static/src/js/editor/snippets.options.js
+++ b/addons/web_editor/static/src/js/editor/snippets.options.js
@@ -3334,6 +3334,7 @@ registry.ImageOptimize = ImageHandlerOption.extend({
this._getImg().dataset.resizeWidth = this.optimizedWidth;
await this._applyOptions();
await this.updateUI();
+ this.trigger_up('cover_update');
}});
},
/**