[FIX] website snippet carousel: new slide editable

bzr revid: chm@openerp.com-20131106152126-lzop8daui959k0gc
This commit is contained in:
Christophe Matthieu
2013-11-06 16:21:26 +01:00
parent 1aaf0eaa4c
commit 21ffca33c5
@@ -1083,10 +1083,6 @@
self.$target.carousel();
});
this.$target.attr('contentEditable', 'false')
.find('.content, .carousel-image img')
.attr('contentEditable', 'true');
this.rebind_event();
},
// rebind event to active carousel on edit mode
@@ -1096,6 +1092,10 @@
self.$target.carousel($(this).data('slide')); });
this.$target.off('click').on('click', '.carousel-indicators [data-target]', function () {
self.$target.carousel(+$(this).data('slide-to')); });
this.$target.attr('contentEditable', 'false')
.find('.content, .carousel-image img')
.attr('contentEditable', 'true');
},
on_add: function (e) {
e.preventDefault();