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