summaryrefslogtreecommitdiff
path: root/objectapp/templates/objectapp/skeleton.html
diff options
context:
space:
mode:
authorgnowgi <nagarjun@gnowledge.org>2012-07-02 06:33:26 -0700
committergnowgi <nagarjun@gnowledge.org>2012-07-02 06:33:26 -0700
commit0d6717fa78d3b8e8e0f30ba11ac35bfd52b7f392 (patch)
treece4730f92968a361e53618c441e7916abe96edb1 /objectapp/templates/objectapp/skeleton.html
parent71829c19e5b711503d010e594563a0a14bbf8d54 (diff)
parent04aaba1f8a52c5eb2820102abd90626c74f68017 (diff)
downloadgnowsys-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.html7
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"})