Skip to content

Commit

Permalink
Fixed #916 - added allowance to link M with H or R types
Browse files Browse the repository at this point in the history
  • Loading branch information
nrichardson authored and nrichardson committed May 7, 2019
1 parent 7d109f6 commit 33d6494
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ window.org_jumpmind_metl_ui_diagram_Diagram = function() {
instance.bind("beforeDrop", function(info) {
var source = info.connection.endpoints[0].getOverlay("label").label;
var target = info.dropEndpoint.getOverlay("label").label;
return source === target || source === '*' || target == '*';
return source === target || source === '*' || target == '*' || (source === 'M' && (target === 'R' || target === 'H')) || ((source === 'R' || source === 'H') && target === 'M');
});
instance.bind("connection", function(info, originalEvent) {
self.onConnection({
Expand Down

0 comments on commit 33d6494

Please sign in to comment.