From f30ab4a9904854c251a3e669cd20fe35bc7e9627 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Tue, 14 Oct 2014 09:17:01 +0200 Subject: [PATCH] [FIX] website.snippet: can't edit content of the banner. (+ better fix for backward compatibility) --- addons/website/static/src/js/website.snippets.editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/website/static/src/js/website.snippets.editor.js b/addons/website/static/src/js/website.snippets.editor.js index dc1c782..480dc7a 100644 --- a/addons/website/static/src/js/website.snippets.editor.js +++ b/addons/website/static/src/js/website.snippets.editor.js @@ -972,7 +972,7 @@ self.$target.carousel(+$(this).data('slide-to')); }); this.$target.attr('contentEditable', 'false'); - this.$target.find('.oe_structure, .content>.row, [data-slide]').attr('contentEditable', 'true'); + this.$target.find('.oe_structure, .content.row, [data-slide]').attr('contentEditable', 'true'); }, clean_for_save: function () { this._super(); @@ -1130,7 +1130,7 @@ this._super(); /* Fix: backward compatibility saas-3 */ - this.$target.find('.item.text_image .container').find('> .carousel-caption > div, > img.carousel-image').attr('contentEditable', 'true'); + this.$target.find('.item.text_image, .item.image_text, .item.text_only').find('.container > .carousel-caption > div, .container > img.carousel-image').attr('contentEditable', 'true'); }, }); -- 1.7.10.4