Full one note detachment proof stage. On to multiple nodes.
Joris van Zundert [Tue, 2 Jul 2013 10:44:44 +0000 (12:44 +0200)]
root/js/relationship.js

index 4642e5e..c4279ac 100644 (file)
@@ -722,7 +722,7 @@ function detach_node( readingsgohere ) {
         duplicate_node.children( 'title' ).text( node_id );
         
         // Add the node and all new edges into the graph
-        var graph_root = $('#svgenlargement svg g');
+        var graph_root = $('#svgenlargement svg g.graph');
         graph_root.append( duplicate_node );
         $.each( detached_edges, function( index, edge ) {
             edge.g_elem.attr( 'id', ( edge.g_elem.attr( 'id' ) + "_0" ) );