From e447868c12a9d72e02817a4d699c4f6810420e3e Mon Sep 17 00:00:00 2001 From: Owen Date: Thu, 24 Jul 2014 19:39:58 +0300 Subject: 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 --- scripts/gant.js | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'scripts/gant.js') 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(); -- cgit v1.3.1