summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-04-08 01:37:42 +0300
committerAlon Levy <alon@pobox.com>2015-04-09 06:39:23 +0300
commita912dd04d3fe334f6196c4308963f44acf8f94d6 (patch)
treedda1296aef70f4eb62d67e7bd845a0f8947ef611 /src/client
parent90c9fe0e6ca1f4529ac89f95f8d85741639ab1e2 (diff)
client/graph_view: small cleanup
Diffstat (limited to 'src/client')
-rw-r--r--src/client/view/graph_view.js17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js
index 55131f11..2fb031fb 100644
--- a/src/client/view/graph_view.js
+++ b/src/client/view/graph_view.js
@@ -182,7 +182,6 @@ function GraphView(spec) {
update_window_size();
function node__is_shown(d) {
- var type = d.type;
return temporary || filter_states[d.type];
}
@@ -449,6 +448,7 @@ function GraphView(spec) {
node_text.select('text').text(nodeText)
.attr("dx", nodeTextX);
}
+
var link_on_hover = function (d, debug_name) {
$('#' + d.id).hover(function (e) {
add_class(this, 'hovering');
@@ -723,21 +723,6 @@ function GraphView(spec) {
node.exit().remove();
- //update deliverables
- deliverables = [];
- var nodes = graph.nodes();
- for (var i = 0; i < nodes.length; i++) {
- var current = nodes[i];
- if (current.type === "internship") {
- deliverables.push({
- "id": nodes[i].id,
- "startdate": nodes[i].start,
- "enddate": nodes[i].end
- });
- }
- //Do something
- }
-
if (force_enabled) {
if (!temporary) {
layout__load_graph();