[FIX] website snippets: filter insead of siblings readXMLData. (fix vertical drop zone, activation snippets...)

bzr revid: chm@openerp.com-20131104102914-jltkz5u88heu87xd
This commit is contained in:
Christophe Matthieu 2013-11-04 11:29:14 +01:00
parent e51baab2f3
commit fb8991d404
1 changed files with 2 additions and 1 deletions

View File

@ -589,7 +589,8 @@
* Displayed into the overlay options on focus
*/
_readXMLData: function() {
this.$el = this.parent.$snippets.siblings("[data-snippet-id='"+this.snippet_id+"']").clone();
var self = this;
this.$el = this.parent.$snippets.filter(function () { return $(this).data("snippet-id") == self.snippet_id; }).clone();
this.$editor = this.$el.find(".oe_snippet_options");
var $options = this.$overlay.find(".oe_overlay_options");
this.$editor.prependTo($options.find(".oe_options ul"));