diff options
| author | Thibault Delavallée <tde@openerp.com> | 2014-04-11 15:38:13 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2014-04-11 15:38:13 +0200 |
| commit | d04ee666ccb0c35bd1c13d9814fdb52f1159e7e9 (patch) | |
| tree | fbb09260a719fc158b6f4087ac16fed36e332ae4 /addons/website/static/src/js/website.snippets.editor.js | |
| parent | e53f66dcea9ff012682dcece8e29d179ebe7d339 (diff) | |
| parent | 6b84615627dca50a3c07cf80d8da0ea9b2d28934 (diff) | |
[MERGE] Sync with trunk
bzr revid: tde@openerp.com-20140411133813-4rj4de6dlzna5g5s
Diffstat (limited to 'addons/website/static/src/js/website.snippets.editor.js')
| -rw-r--r-- | addons/website/static/src/js/website.snippets.editor.js | 8 |
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(); |
