[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.
This commit is contained in:
Deep Patel
2017-10-30 17:35:02 +01:00
committed by qsm-odoo
parent 0634b04a08
commit 0e9197c562
@@ -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();
},