[FIX] website snippet: carousel contentEditable

bzr revid: chm@openerp.com-20131203092641-6o3bsuayl71t0l7s
This commit is contained in:
Christophe Matthieu 2013-12-03 10:26:41 +01:00
parent 5b4d0b9dbb
commit bd753f6e8f
1 changed files with 4 additions and 2 deletions

View File

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