diff options
| author | chm@openerp.com <> | 2014-04-09 09:28:13 +0200 |
|---|---|---|
| committer | chm@openerp.com <> | 2014-04-09 09:28:13 +0200 |
| commit | 3993d1ce2f0caf846a80666e4d1440f5ba8f2ac3 (patch) | |
| tree | 621689aa53d783d16b3681fbdbcb721b594f66fc /addons/website/static/src/js/website.snippets.editor.js | |
| parent | 41d172ea6dd0fb3825116a37565876bfd88420ae (diff) | |
[FIX] website: snippet parallax. Error when the user activate a snippet parallax already inserted
bzr revid: chm@openerp.com-20140409072813-43fqwcr7j6i0zl0e
Diffstat (limited to 'addons/website/static/src/js/website.snippets.editor.js')
| -rw-r--r-- | addons/website/static/src/js/website.snippets.editor.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/website/static/src/js/website.snippets.editor.js b/addons/website/static/src/js/website.snippets.editor.js index befe7faeb53..ad96b4c6c49 100644 --- a/addons/website/static/src/js/website.snippets.editor.js +++ b/addons/website/static/src/js/website.snippets.editor.js @@ -1441,6 +1441,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(); @@ -1472,9 +1475,6 @@ this.$target.find(".parallax") .css("background-position", '') .removeAttr("data-scroll-background-offset"); - }, - _drag_and_drop: function(){ - this.$target.data("snippet-view", new website.snippet.animationRegistry.parallax(this.$target)); } }); |
