From 3bae864d1e587e87262c56f1c5f789ac6a6fabc4 Mon Sep 17 00:00:00 2001 From: Younn Olivier Date: Thu, 29 Apr 2021 09:04:41 +0000 Subject: [FIX] website: remove "add image" button from the normal mode The "Add image" button was shown out of the editor mode when removing all images from a snippet. task-2469516 closes odoo/odoo#71424 X-original-commit: c1f4a39071c8f99499a7e1e5214362ac29df8881 Signed-off-by: Quentin Smetz (qsm) --- addons/website/static/src/snippets/s_image_gallery/options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/website/static/src') diff --git a/addons/website/static/src/snippets/s_image_gallery/options.js b/addons/website/static/src/snippets/s_image_gallery/options.js index 3b6937ba6de..8afb5c1f95a 100644 --- a/addons/website/static/src/snippets/s_image_gallery/options.js +++ b/addons/website/static/src/snippets/s_image_gallery/options.js @@ -239,7 +239,7 @@ options.registry.gallery = options.Class.extend({ */ removeAllImages: function (previewMode) { var $addImg = $('
', { - class: 'alert alert-info css_editable_mode_display text-center', + class: 'alert alert-info css_non_editable_mode_hidden text-center', }); var $text = $('', { class: 'o_add_images', -- cgit v1.2.3