summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/rhizicore.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js
index 978433aa..27f4d25b 100644
--- a/scripts/rhizicore.js
+++ b/scripts/rhizicore.js
@@ -152,8 +152,12 @@ function myGraph(el) {
this.addLink = function(sourceId, targetId, name, state) {
var sourceNode = findNode(sourceId, null);
var targetNode = findNode(targetId, null);
+ var found=findLink(sourceId,targetId,name);
+
if(name)if(name.replace(/ /g,"")==="and")state="temp";
- if ((sourceNode !== undefined) && (targetNode !== undefined)) {
+ if(found){
+
+ }else if ((sourceNode !== undefined) && (targetNode !== undefined)) {
links.push({
"source": sourceNode,
"target": targetNode,