summaryrefslogtreecommitdiff
path: root/scripts/gant.js
diff options
context:
space:
mode:
authorOwen <despito@MacBook-Pro-de-Despito.local>2014-07-24 19:39:58 +0300
committerOwen <despito@MacBook-Pro-de-Despito.local>2014-07-24 19:40:07 +0300
commite447868c12a9d72e02817a4d699c4f6810420e3e (patch)
tree2178f1bce860e2e3d668d364fc09bdbdc7daa708 /scripts/gant.js
parenta58169386ca1feb178e73ba881b5223d6f6e0087 (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/gant.js')
-rw-r--r--scripts/gant.js19
1 files changed, 12 insertions, 7 deletions
diff --git a/scripts/gant.js b/scripts/gant.js
index 6747a244..69d88961 100644
--- a/scripts/gant.js
+++ b/scripts/gant.js
@@ -7,24 +7,29 @@ function checkSwitch(checkswitch) {
vis.selectAll(".gantt").remove();
$('.missingdates').fadeOut(300);
scrollValue = $('body').scrollLeft();
- console.log(scrollValue);
$('body').scrollLeft(0);
graphstate = "GRAPH";
- var fake_e = {};
- fake_e.alpha = 0.1;
- tick(fake_e);
+ graph.updateGraph();
+
+ $('.status').fadeOut(600);
//boxedin=false;
} else {
+ ganttTimer=0;
$('.missingdates').fadeIn(300);
+
+ graph.recenterZoom();
+
$('body').scrollLeft(scrollValue);
graphstate = "GANTT";
- var fake_e = {};
- fake_e.alpha = 0.1;
- tick(fake_e);
+
+ graph.updateGraph();
+
+
+ $('.status').fadeIn(600);
initAxis();