From: Joris van Zundert <joris.van.zundert@gmail.com>
Date: Thu, 18 Jul 2013 04:16:31 +0000 (-0500)
Subject: Work on title of edges merged
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=aaf27b2e9ca2b64a4b59eb21a390a2edfd14ae43;p=scpubgit%2Fstemmaweb.git

Work on title of edges merged
---

diff --git a/root/js/detach_helpers.js b/root/js/detach_helpers.js
index f77a03e..c9f035a 100644
--- a/root/js/detach_helpers.js
+++ b/root/js/detach_helpers.js
@@ -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 );
             }
         }
     }
diff --git a/root/js/relationship.js b/root/js/relationship.js
index 04d079c..155c611 100644
--- a/root/js/relationship.js
+++ b/root/js/relationship.js
@@ -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 ) {