Commit b371063d authored by Jérome Perrin's avatar Jérome Perrin

f GE

parent 7f548eab
......@@ -112,8 +112,8 @@ class_definition = {\n
\'type\': \'object\',\n
\'description\': \'An ERP5 Business Link\',\n
\'properties\': {\n
\'name\': {\'type\': \'string\', \'name\': translateString(\'Name\')},\n
\'trade_phase\': {\'type\': \'string\', \'name\': translateString(\'Trade Phase\'), \'enum\': [\'\'] + [\n
\'name\': {\'type\': \'string\', \'name\': str(translateString(\'Name\'))},\n
\'trade_phase\': {\'type\': \'string\', \'name\': str(translateString(\'Trade Phase\')), \'enum\': [\'\'] + [\n
trade_phase.getId() for trade_phase in portal.portal_categories.trade_phase.getCategoryChildValueList(local_sort_on=(\'int_index\', \'title\'))]}, \n
}\n
}\n
......
......@@ -8,7 +8,7 @@
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts31683597.7</string> </value>
<value> <string>ts31914157.58</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
......@@ -729,7 +729,6 @@
this.props.erp5_key = data.key;\n
data = data.value;\n
}\n
// XXX to be sure:(\n
jsplumb_instance = this.props.jsplumb_instance = jsPlumb.getInstance();\n
\n
this.props.main = this.props.element.querySelector(".graph_container");\n
......@@ -741,7 +740,6 @@
});\n
*/\n
\n
this.props.main = this.props.element.querySelector(".graph_container");\n
jsplumb_instance.setRenderMode(jsplumb_instance.SVG);\n
jsplumb_instance.importDefaults({\n
HoverPaintStyle: {\n
......@@ -790,7 +788,18 @@
})\n
.declareService(function() {\n
var gadget = this;\n
this.props.main = this.props.element.querySelector(".graph_container");\n
this.props.jsplumb_instance = jsPlumb.getInstance();\n
if (this.props.data) {\n
// load the data\n
$.each(this.props.data.graph.node, function(key, value) {\n
addNode(gadget, key, value);\n
});\n
$.each(this.props.data.graph.edge, function(key, value) {\n
addEdge(gadget, key, value);\n
});\n
}\n
\n
this.props.nodes_click_monitor = RSVP.Monitor();\n
return RSVP.all([waitForDrop(gadget),\n
waitForConnection(gadget),\n
......@@ -810,7 +819,7 @@
</item>
<item>
<key> <string>size</string> </key>
<value> <int>29161</int> </value>
<value> <int>29429</int> </value>
</item>
<item>
<key> <string>title</string> </key>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment