[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:
Olivier Dony 2014-04-10 19:43:14 +02:00
parent 95701c28c0
commit 7c75b5e004
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}
});
};

View File

@ -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);