this.on('rte:ready', this, function () {
self.snippets.$button.removeClass("hidden");
website.snippet.start_animation();
+ // force to unactive slider cycling
+ setInterval(function () {$(".carousel").carousel("pause");},3000);
});
return this._super.apply(this, arguments);
this.$target.find(".item:first").addClass("active");
}
},
- onFocus : function () {
- this._super();
- this.$target.carousel('pause');
- },
- onBlur : function () {
- this._super();
- this.$target.carousel('cycle');
- },
start : function () {
var self = this;
this._super();
self.$target.data("snippet-view").set_values();
});
this.$target.attr('contentEditable', 'false');
- this.$target.find('> div > .oe_structure').attr('contentEditable', 'true');
+
+ this.$target.find('> div > .oe_structure').attr('contentEditable', 'true'); // saas-3 retro-compatibility
+
+ this.$target.find('> div > div:not(.oe_structure) > .oe_structure').attr('contentEditable', 'true');
},
scroll: function () {
var self = this;
</ul>
</li>
<section class="oe_snippet_body parallax"
- style="height: 320px; background-image: url('/website/static/src/img/banner/mountains.jpg')"
+ style="background-image: url('/website/static/src/img/banner/mountains.jpg')"
data-scroll-background-ratio="0.3">
<div><div class="oe_structure"/></div>
</section>
<span class="oe_snippet_thumbnail_title">Parallax Slider</span>
</div>
<section class="oe_snippet_body parallax" data-snippet-id="parallax"
- style="height: 320px; background-image: url('/website/static/src/img/parallax/quote.png')"
+ style="background-image: url('/website/static/src/img/parallax/quote.png')"
data-scroll-background-ratio="0.3">
- <div>
- <div class="oe_structure">
+ <div><div><div class="oe_structure">
<div id="myQuoteCarousel" class="carousel quotecarousel slide mb0" data-snippet-id="slider">
<!-- Indicators -->
<ol class="carousel-indicators mb0">
</div>
</div>
</div>
- </div>
- </div>
+ </div></div></div>
</section>
</div>