summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-09-29 20:43:49 +0300
committerAlon Levy <alon@pobox.com>2014-09-29 20:43:49 +0300
commitc8ae780e3e8d8f78d30f88a57c0df3fd4210f2d9 (patch)
treece421daad2220fa7c0e6f0e962b373afb0c5f842 /scripts
parent444c00791490830854cbd29656fb52684bcdc4e9 (diff)
remove deliverableTest
Diffstat (limited to 'scripts')
-rw-r--r--scripts/buttons.js4
-rw-r--r--scripts/rhizicore.js35
2 files changed, 0 insertions, 39 deletions
diff --git a/scripts/buttons.js b/scripts/buttons.js
index 3de25931..1789aab7 100644
--- a/scripts/buttons.js
+++ b/scripts/buttons.js
@@ -34,10 +34,6 @@ $('.local-storage-load').click(function(){
graph.load_from_json(json_blob);
});
-$('.deliverabletest').click(function(){
- deliverableTest();
-});
-
$('.set-user').click(function() {
$('.set-user').hide();
$('.set-user-form').show();
diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js
index 70adfc3b..d3c5e54b 100644
--- a/scripts/rhizicore.js
+++ b/scripts/rhizicore.js
@@ -833,41 +833,6 @@ function tick(e) {
node.attr('visibility', 'visible');
}
-
-
-
-function deliverableTest() {
- links=[];
- nodes=[];
- var status = "unknown";
- var nodecounter = 150;
- for (var i = 0; i < nodecounter; i++) {
- if (Math.random() > 0.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, status);
- }
-
- for (var i = 0; i < nodecounter; i++) {
- var endindex = Math.floor(Math.random() * nodecounter);
- var startindex = Math.floor(Math.random() * nodecounter);
- if (nodes[endindex].start > nodes[startindex].start && startindex !== endindex) {
- graph.addLink("Task " + startindex, "Task " + endindex, "depends on", "perm");
- } else {
- graph.addLink("Task " + endindex, "Task " + startindex, "depends on", "perm");
- }
- }
-
- function randomDate(start, end) {
- return new Date(start.getTime() + Math.random() * (end.getTime() - start.getTime()));
- }
-
- graph.update();
-}
-
-
function showInfo(d, i) {
if (d.state !== "chosen") {
graph.highlightNode(d.id, null);