From 148a2b1eb9d6186bc008056570c3f9230babff2a Mon Sep 17 00:00:00 2001 From: Benjamin Vray Date: Tue, 8 Sep 2020 14:33:04 +0000 Subject: [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) --- addons/web_editor/static/src/js/editor/snippets.options.js | 1 + 1 file changed, 1 insertion(+) (limited to 'addons/web_editor/static/src/js/editor/snippets.options.js') 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'); }}); }, /** -- cgit v1.2.3