From 0e9197c5621bfeb2758a17dd157c4f3d9517ef89 Mon Sep 17 00:00:00 2001 From: Deep Patel Date: Wed, 4 Oct 2017 10:43:33 +0530 Subject: [PATCH] [FIX] website: bg element not found when using big parallax snippet qsm: This is because of multiple animations during edition (which is not occuring afterwards). This is not supported, but as it does not break anything, it can be kept as it is. However, we cannot access the animation via 'snippet-view' anymore, which is fine as I am about to deprecate it in master. --- addons/website/static/src/js/editor/snippets.options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website/static/src/js/editor/snippets.options.js b/addons/website/static/src/js/editor/snippets.options.js index dfe5387976e..451d4faceff 100644 --- a/addons/website/static/src/js/editor/snippets.options.js +++ b/addons/website/static/src/js/editor/snippets.options.js @@ -341,7 +341,7 @@ options.registry.parallax = options.Class.extend({ this.trigger_up('option_update', { optionNames: ['background', 'background_position'], name: 'target', - data: this.$target.data('snippet-view').$bg, + data: this.$target.find('> .s_parallax_bg'), }); this._refresh(); },