diff options
| author | Owen <despito@MacBook-Pro-de-Despito.local> | 2014-07-24 19:39:58 +0300 |
|---|---|---|
| committer | Owen <despito@MacBook-Pro-de-Despito.local> | 2014-07-24 19:40:07 +0300 |
| commit | e447868c12a9d72e02817a4d699c4f6810420e3e (patch) | |
| tree | 2178f1bce860e2e3d668d364fc09bdbdc7daa708 /scripts/buttons.js | |
| parent | a58169386ca1feb178e73ba881b5223d6f6e0087 (diff) | |
Status icons + Gantt/Graph transition
Transition is now fixed and now has a neat movement effect
Each icon now has a status value (done, current, not done) to indicate
the state of deliverables
Gantt button was moved for better UI
Diffstat (limited to 'scripts/buttons.js')
| -rw-r--r-- | scripts/buttons.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/buttons.js b/scripts/buttons.js index 980a51d9..b29e85e9 100644 --- a/scripts/buttons.js +++ b/scripts/buttons.js @@ -29,7 +29,7 @@ $('.save').click(function(){ console.log(nodes); for(var i=0;i<nodes.length;i++){ var node=nodes[i]; - jsonsave+='{"id":"'+node.id+'","type":"'+node.type+'","state":"'+"perm"+'","start":"'+node.start+'","end":"'+node.end+'"}'; + jsonsave+='{"id":"'+node.id+'","type":"'+node.type+'","state":"'+"perm"+'","start":"'+node.start+'","end":"'+node.end+'","status":"'+node.status+'"}'; if(i!==nodes.length-1)jsonsave+=','; } jsonsave+='],"links":['; @@ -58,7 +58,7 @@ $('.load').click(function(){ console.log(data); for(var i=0; i<data["nodes"].length; i++){ var node=data.nodes[i]; - graph.addNodeComplete(node.id,node.type,"perm",new Date(node.start),new Date(node.end)); + graph.addNodeComplete(node.id,node.type,"perm",new Date(node.start),new Date(node.end),node.status); } for(var j=0; j<data["links"].length; j++){ |
