summaryrefslogtreecommitdiff
path: root/addons/website/static/src
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@openerp.com>2013-12-03 10:26:41 +0100
committerChristophe Matthieu <chm@openerp.com>2013-12-03 10:26:41 +0100
commitbd753f6e8fbd1022e6844a76bc6916ded0b3a8da (patch)
treee6b4ba63ad4ee7b0b2fe36aae58fb619ef813371 /addons/website/static/src
parent5b4d0b9dbb14dcba8d0595df06d266f0d5edeb60 (diff)
[FIX] website snippet: carousel contentEditable
bzr revid: chm@openerp.com-20131203092641-6o3bsuayl71t0l7s
Diffstat (limited to 'addons/website/static/src')
-rw-r--r--addons/website/static/src/js/website.snippets.editor.js6
1 files 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 ebbe0bf5dd8..6d9a2ff0ea1 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();
},
});