From bd753f6e8fbd1022e6844a76bc6916ded0b3a8da Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Tue, 3 Dec 2013 10:26:41 +0100 Subject: [PATCH] [FIX] website snippet: carousel contentEditable bzr revid: chm@openerp.com-20131203092641-6o3bsuayl71t0l7s --- addons/website/static/src/js/website.snippets.editor.js | 6 ++++-- 1 file changed, 4 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 ebbe0bf..6d9a2ff 100644 --- a/addons/website/static/src/js/website.snippets.editor.js +++ b/addons/website/static/src/js/website.snippets.editor.js @@ -1162,8 +1162,8 @@ this.$target.find('.carousel-indicators [data-target]').off('click').on('click', function () { self.$target.carousel(+$(this).data('slide-to')); }); - this.$target.attr('contentEditable', 'false') - .find('.oe_structure, blockquote').attr('contentEditable', 'true'); + this.$target.attr('contentEditable', 'false'); + this.$target.find('.oe_structure, blockquote').attr('contentEditable', 'true'); this.$target.carousel('pause'); }, @@ -1303,6 +1303,8 @@ var self = this; this.$target.find('.carousel-control').off('click').on('click', function () { self.$target.carousel( $(this).data('slide')); }); + + this.$target.find('.carousel-image img, .content').attr('contentEditable', 'true'); this._super(); }, }); -- 1.7.10.4