[FIX] website.snippet: can't edit content of the banner. (+ better fix for backward compatibility)

This commit is contained in:
Christophe Matthieu 2014-10-14 09:17:01 +02:00
parent ebbfda91fe
commit f30ab4a990
1 changed files with 2 additions and 2 deletions

View File

@ -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');
},
});