Work on title of edges merged
Joris van Zundert [Thu, 18 Jul 2013 04:16:31 +0000 (23:16 -0500)]
root/js/detach_helpers.js
root/js/relationship.js

index f77a03e..c9f035a 100644 (file)
@@ -115,6 +115,8 @@ function Edge( g_elem ) {
                 var dy = (target_cy - source_cy);
                 end_point_arrowhead.reposition( dx, dy );
                 edge_path.reposition( dx, dy );
+                // var new_title = g_elem.children('title').text().replace( self.end_node_id, target_node_id );
+                // console.log( new_title );
             }
         }
     }
index 04d079c..155c611 100644 (file)
@@ -799,7 +799,7 @@ function merge_nodes( source_node_id, target_node_id, consequences ) {
                     $( '#' + merge_id ).parent().remove();
                     //notify backend
                     var ncpath = getTextURL( 'merge' );
-                    var form_values = "source_id=" + source_node_id + "&target_id=" + target_node_id + "&single=true";
+                    var form_values = "source_id=" + node_ids[0] + "&target_id=" + node_ids[1] + "&single=true";
                     $.post( ncpath, form_values );
                 } );
                 $( '#no' + merge_id ).click( function( evt ) {