[FIX] website: avoid discarding snippet animator after edit + properly restart animation while disabling clicks
bzr revid: odo@openerp.com-20140410174314-vecg7inmfgm7r5fq
This commit is contained in:
parent
95701c28c0
commit
7c75b5e004
|
@ -34,7 +34,6 @@
|
|||
var $snipped_id = $(this);
|
||||
if ($snipped_id.data("snippet-view")) {
|
||||
$snipped_id.data("snippet-view").stop();
|
||||
$snipped_id.data("snippet-view", false);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue