[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:
parent
e51baab2f3
commit
fb8991d404
|
@ -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"));
|
||||
|
|
Loading…
Reference in New Issue