mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Ensure links do not span tabs in the editor
This commit is contained in:
		@@ -1004,9 +1004,13 @@ RED.nodes = (function() {
 | 
			
		||||
                    var wires = (n.wires[w1] instanceof Array)?n.wires[w1]:[n.wires[w1]];
 | 
			
		||||
                    for (var w2=0;w2<wires.length;w2++) {
 | 
			
		||||
                        if (node_map.hasOwnProperty(wires[w2])) {
 | 
			
		||||
                            var link = {source:n,sourcePort:w1,target:node_map[wires[w2]]};
 | 
			
		||||
                            addLink(link);
 | 
			
		||||
                            new_links.push(link);
 | 
			
		||||
                            if (n.z === node_map[wires[w2]].z) {
 | 
			
		||||
                                var link = {source:n,sourcePort:w1,target:node_map[wires[w2]]};
 | 
			
		||||
                                addLink(link);
 | 
			
		||||
                                new_links.push(link);
 | 
			
		||||
                            } else {
 | 
			
		||||
                                console.log("Warning: dropping link that crosses tabs:",n.id,"->",node_map[wires[w2]].id);
 | 
			
		||||
                            }
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user