look for deleted relations as result of node duplication. Issue #17
[scpubgit/stemmaweb.git] / root / js / relationship.js
index a056ee7..e36243c 100644 (file)
@@ -664,7 +664,8 @@ function draw_relation( source_id, target_id, relation_color ) {
 }
 
 function detach_node( readings ) {
-    
+    // separate out the deleted relationships, discard for now
+    delete readings['DELETED'];
     // add new node(s)
     $.extend( readingdata, readings );
     // remove from existing readings the witnesses for the new nodes/readings