summaryrefslogtreecommitdiff
path: root/addons/website/static
diff options
context:
space:
mode:
authorYounn Olivier <yol@odoo.com>2021-04-29 09:04:41 +0000
committerYounn Olivier <yol@odoo.com>2021-05-31 07:44:30 +0000
commit3bae864d1e587e87262c56f1c5f789ac6a6fabc4 (patch)
tree00b01e0f8e77ff4fa0afbd6c18640843971ff079 /addons/website/static
parentced59a94a18e4db4190428efe5ef29392c1b12ad (diff)
[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) <qsm@odoo.com>
Diffstat (limited to 'addons/website/static')
-rw-r--r--addons/website/static/src/snippets/s_image_gallery/options.js2
1 files changed, 1 insertions, 1 deletions
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 = $('<div>', {
- class: 'alert alert-info css_editable_mode_display text-center',
+ class: 'alert alert-info css_non_editable_mode_hidden text-center',
});
var $text = $('<span>', {
class: 'o_add_images',