diff options
author | gnowgi <nagarjun@gnowledge.org> | 2012-07-02 06:33:26 -0700 |
---|---|---|
committer | gnowgi <nagarjun@gnowledge.org> | 2012-07-02 06:33:26 -0700 |
commit | 0d6717fa78d3b8e8e0f30ba11ac35bfd52b7f392 (patch) | |
tree | ce4730f92968a361e53618c441e7916abe96edb1 /objectapp/templates/objectapp/skeleton.html | |
parent | 71829c19e5b711503d010e594563a0a14bbf8d54 (diff) | |
parent | 04aaba1f8a52c5eb2820102abd90626c74f68017 (diff) | |
download | gnowsys-0d6717fa78d3b8e8e0f30ba11ac35bfd52b7f392.tar.gz |
Merge pull request #62 from anujag/master
graph code restored
Diffstat (limited to 'objectapp/templates/objectapp/skeleton.html')
-rw-r--r-- | objectapp/templates/objectapp/skeleton.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/objectapp/templates/objectapp/skeleton.html b/objectapp/templates/objectapp/skeleton.html index 72432f15..193808cc 100644 --- a/objectapp/templates/objectapp/skeleton.html +++ b/objectapp/templates/objectapp/skeleton.html @@ -560,12 +560,13 @@ $(window).bind('keydown',function(event) { .attr("cx", bbox.x+25) .attr("cy", bbox.y+13) .call(force.drag) - .attr("rx",function(d) {var ttx=d.screen_name ; return (ttx.length + 55)}) - .attr("ry",14) + .attr("rx",function(d) {var ttx=d.screen_name ; return (ttx.length + 40)}) + .attr("ry",13) + .style("fill-opacity", ".2") .style("stroke", "#666") .style("stroke-width", "1.5px") - .style("fill", function color(d) {if (d.expanded=="true" && d.refType=="Objecttype") return "blue"; else if(d.expanded=="true" && d.refType=="Gbobject") return "red"; else return "none"}); + .style("fill", function(d) {if ((d.expanded=="true" && d.refType=="Gbobject") ||(d._id=={{object.id}}) ) return "red"; else if(d.expanded=="true" && d.refType=="Objecttype") return "blue"; else return "none"}) |