[FIX] some formatting
bzr revid: xmo@openerp.com-20110906080847-514yysnz2kuwl4g0
This commit is contained in:
parent
86a1a3de4a
commit
5293c3b2e8
|
@ -67,20 +67,20 @@ openerp.base_diagram.DiagramView = openerp.base.View.extend({
|
|||
get_diagram_info: function() {
|
||||
var self = this;
|
||||
var params = {
|
||||
'id': this.id,
|
||||
'model': this.model,
|
||||
'node': this.node,
|
||||
'connector': this.connector,
|
||||
'bgcolor': this.nodes.attrs.bgcolor,
|
||||
'shape': this.nodes.attrs.shape,
|
||||
'src_node': this.connectors.attrs.source,
|
||||
'des_node': this.connectors.attrs.destination,
|
||||
'visible_nodes': [],
|
||||
'invisible_nodes': [],
|
||||
'node_fields': [],
|
||||
'connectors': [],
|
||||
'connectors_fields': []
|
||||
};
|
||||
'id': this.id,
|
||||
'model': this.model,
|
||||
'node': this.node,
|
||||
'connector': this.connector,
|
||||
'bgcolor': this.nodes.attrs.bgcolor,
|
||||
'shape': this.nodes.attrs.shape,
|
||||
'src_node': this.connectors.attrs.source,
|
||||
'des_node': this.connectors.attrs.destination,
|
||||
'visible_nodes': [],
|
||||
'invisible_nodes': [],
|
||||
'node_fields': [],
|
||||
'connectors': [],
|
||||
'connectors_fields': []
|
||||
};
|
||||
|
||||
_.each(this.nodes.children, function(child) {
|
||||
if(child.attrs.invisible == '1')
|
||||
|
@ -129,10 +129,10 @@ openerp.base_diagram.DiagramView = openerp.base.View.extend({
|
|||
if(shape == 'rectangle')
|
||||
shape = 'rect';
|
||||
node = r[shape](n.node.x, n.node.y).attr({
|
||||
"fill": n.node.color,
|
||||
}).dblclick(function() {
|
||||
self.add_edit_node(n.node.id, self.node);
|
||||
});
|
||||
"fill": n.node.color
|
||||
}).dblclick(function() {
|
||||
self.add_edit_node(n.node.id, self.node);
|
||||
});
|
||||
set = r.set()
|
||||
.push(node)
|
||||
.push(
|
||||
|
|
Loading…
Reference in New Issue