From df7f1e7f3362fb44b44c7000acbf1869bed2aae5 Mon Sep 17 00:00:00 2001 From: Owen Date: Sun, 10 Aug 2014 17:03:05 +0300 Subject: Issue #32 --- scripts/rhizicore.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'scripts') diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js index facd9712..287c55e7 100644 --- a/scripts/rhizicore.js +++ b/scripts/rhizicore.js @@ -347,15 +347,13 @@ function myGraph(el) { } function dragged(d) { - - d3.select(this).classed("fixed", true); d3.select(this).attr("cx", d.x = d3.event.x).attr("cy", d.y = d3.event.y); } function dragended(d) { d3.select(this).classed("dragging", false); d3.select(this).classed("fixed", true); - //d3.select(this).attr("cx", d.x = d3.event.x).attr("cy", d.y = d3.event.y); + d3.select(this).attr("dx", d3.event.x).attr("dy", d3.event.y); } var force = d3.layout.force() @@ -503,7 +501,7 @@ function myGraph(el) { }) .on("click", function(d, i) { if(d.state!=="temp")showInfo(d, i); - else graph.removeHighlight(); + else graph.removeHighlight(); graph.update(); }); @@ -780,7 +778,9 @@ function showInfo(d, i) { if (d.type === "deliverable") { $('.info').html('Name: ' + d.id + '





'); - } else { + } else if(d.type=== "chainlink"){ + $('.info').html('Name: ' + d.id + '
'); + }else{ $('.info').html('Name: ' + d.id + '



'); } -- cgit v1.3.1