Commit 85e58599 authored by Jérome Perrin's avatar Jérome Perrin

Jump to business link when double clicking the link

BUG Jsplumb silently swallows exceptions on handlers
parent 24895d97
......@@ -96,7 +96,7 @@ def getBusinessProcessGraph(business_process):\n
source=predecessor,\n
destination=successor,\n
name=link.getTranslatedTitle(),\n
business_process_relative_url=context.getRelativeUrl(),\n
business_link_url=link.getRelativeUrl(),\n
trade_phase=link.getTradePhase())\n
\n
for specialise in [context] + business_process.getSpecialiseValueList(portal_type=\'Business Process\'):\n
......
......@@ -8,7 +8,7 @@
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts17759117.85</string> </value>
<value> <string>ts17764628.88</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
......@@ -149,10 +149,9 @@
}\n
function waitForConnectionClick(gadget) {\n
// TODO: dialog to edit connection properties\n
loopJsplumbBind(gadget, "click", function(connection) {\n
if (confirm("Delete connection ?")) {\n
gadget.props.jsplumb_instance.detach(connection);\n
}\n
// XXX error in this function are silently ignored !!!\n
loopJsplumbBind(gadget, "dblclick", function(connection) {\n
return window.location.replace(gadget.props.data.graph.edge[connection.id].business_link_url);\n
});\n
}\n
function convertToAbsolutePosition(gadget, x, y) {\n
......@@ -598,7 +597,7 @@
</item>
<item>
<key> <string>size</string> </key>
<value> <int>25443</int> </value>
<value> <int>25483</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