summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.snippets.editor.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/website/static/src/js/website.snippets.editor.js')
-rw-r--r--addons/website/static/src/js/website.snippets.editor.js8
1 files changed, 6 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 fac4f9ab357..d8eee3cbec5 100644
--- a/addons/website/static/src/js/website.snippets.editor.js
+++ b/addons/website/static/src/js/website.snippets.editor.js
@@ -151,10 +151,11 @@
$("[data-oe-model] *, [data-oe-type=html] *").off('click');
window.snippets = this.snippets = new website.snippet.BuildingBlock(this);
this.snippets.appendTo(this.$el);
+ website.snippet.stop_animation();
this.on('rte:ready', this, function () {
self.snippets.$button.removeClass("hidden");
- website.snippet.stop_animation();
- website.snippet.start_animation(true, $(".media_iframe_video"));
+ website.snippet.start_animation();
+ $("#wrapwrap *").off('mousedown mouseup click');
});
return this._super.apply(this, arguments);
@@ -1399,6 +1400,9 @@
start : function () {
var self = this;
this._super();
+ if (!self.$target.data("snippet-view")) {
+ this.$target.data("snippet-view", new website.snippet.animationRegistry.parallax(this.$target));
+ }
this.scroll();
this.$target.on('snippet-style-change snippet-style-preview', function () {
self.$target.data("snippet-view").set_values();