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/buttons.js | 4 +-- scripts/gant.js | 19 +++++++----- scripts/rhizicore.js | 85 +++++++++++++++++++++++++++++++++++++++------------- scripts/watchdog.js | 10 ------- 4 files changed, 79 insertions(+), 39 deletions(-) (limited to 'scripts') 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;i0.7)status="done"; + else if(Math.random()>0.5) status="current"; + else status="waiting"; var end = randomDate(new Date(), new Date("01-01-2018")); var start = randomDate(new Date(), end); - graph.addNodeComplete("Task " + i, "deliverable", "perm", start, end); + graph.addNodeComplete("Task " + i, "deliverable", "perm", start, end, status); } for (var i = 0; i < 60; i++) { @@ -614,7 +659,7 @@ function showInfo(d, i) { $('.info').fadeIn(300); if (d.type === "deliverable") { - $('.info').html('Name: '+d.id+'
'); + $('.info').html('Name: '+d.id+'
'); } else { $('.info').html('Name: '+d.id+'
'); } @@ -635,7 +680,7 @@ function showInfo(d, i) { $('#editdescription').val(d.type); - $('#editurl').val('www.' + d.id + '.com'); + $('#editstatus').val(d.status ); if (d.type === "deliverable") { $('#editstartdate').val(d.start); @@ -734,7 +779,7 @@ function customColor(type) { color = '#62BB47'; break; case "deliverable": - color = '#E03A3E'; + color = '#CCC'; break; case "objective": color = '#933E99'; diff --git a/scripts/watchdog.js b/scripts/watchdog.js index 9ecdb6da..b28b04f6 100644 --- a/scripts/watchdog.js +++ b/scripts/watchdog.js @@ -1,13 +1,3 @@ -var oldtext; -$('#textanalyser').keyup(function(){ - - var counter=$('#textanalyser').val().match(/([#])/g); - if(counter.length>2){ - $('#textanalyser').val(oldtext); - } - oldtext=$('#textanalyser').val(); - -}); -- cgit v1.3.1