[IMP] website: snippets banner: now user can't remove the picture

bzr revid: chm@openerp.com-20131015095058-ci36cqfm06j9e15s
This commit is contained in:
Christophe Matthieu
2013-10-15 11:50:58 +02:00
parent 110d2d1386
commit 38286d850c
2 changed files with 5 additions and 1 deletions
@@ -1029,6 +1029,10 @@
self.$target.carousel();
});
this.$target.on('dblclick', '.item.active .carousel-image img', function (event) {
$('#oe_rte_toolbar .cke_button__image .cke_button__image_icon').click();
});
this.rebind_event();
},
// rebind event to active carousel on edit mode
+1 -1
View File
@@ -69,7 +69,7 @@
</ol>
<div class="carousel-inner">
<div class="item image_text active" style="background-image: url('/website/static/src/img/banner/color_splash.jpg')">
<div class="container" contenteditable="true">
<div class="container">
<div class="carousel-caption content">
<h2>Your Banner Title</h2>
<h3>Click to customize this text</h3>