summaryrefslogtreecommitdiff
path: root/gnowsys-ndf/gnowsys_ndf
diff options
context:
space:
mode:
authorKedar Aitawdekar <kedar2a@gmail.com>2015-07-09 16:58:59 +0530
committerKedar Aitawdekar <kedar2a@gmail.com>2015-07-09 16:58:59 +0530
commitcc5be08728173f0b57f250ee1cad5af8eeaf8db9 (patch)
tree28c308e7281b3d23dda9f7b6ef130031bfc37207 /gnowsys-ndf/gnowsys_ndf
parent919a5c1f8aa1c9ca3ee4612b683f9ea35a81cbdc (diff)
downloadgnowsys-cc5be08728173f0b57f250ee1cad5af8eeaf8db9.tar.gz
Making first child of hierarchy open in collapsible tree
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf')
-rw-r--r--gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/hierarchy_tree.html8
-rw-r--r--gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/moderation_data_review.html2
-rw-r--r--gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/theme_drag_zoom_d3tree.html6
3 files changed, 6 insertions, 10 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/hierarchy_tree.html b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/hierarchy_tree.html
index 26aa45d..bc9ff32 100644
--- a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/hierarchy_tree.html
+++ b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/hierarchy_tree.html
@@ -129,9 +129,7 @@
if (node.node_type == "Topic"){
location.href = "/{{group_name_tag}}/topic_details/"+node.id+"?nav_li="+nav_list+"";
}
-
}
-
}
);
@@ -156,16 +154,11 @@
alert("Topic "+node.name+" deleted successfully");
location.reload(true);
},
-
});
-
}
{% endif %}
-
}
);
-
-
};
@@ -549,5 +542,4 @@
});
-
</script>
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/moderation_data_review.html b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/moderation_data_review.html
index 06505c0..7676a47 100644
--- a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/moderation_data_review.html
+++ b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/moderation_data_review.html
@@ -42,7 +42,7 @@ function approveResource (oid) {
alert("Resource is successfully approved from this group.");
// fetching resource blank seperator row
- var $resBlankRow = $("tr#blank-row-" + "5577ed2b90b5502857a8e67d");
+ var $resBlankRow = $("tr#blank-row-" + oid);
// fetching resource object VIEW row
var $resViewRow = $("tr#view-row-" + oid);
// fetching resource object EDIT row
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/theme_drag_zoom_d3tree.html b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/theme_drag_zoom_d3tree.html
index 3710cda..a7fdb0c 100644
--- a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/theme_drag_zoom_d3tree.html
+++ b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/theme_drag_zoom_d3tree.html
@@ -579,7 +579,6 @@
// Define the root
root = treeData;
- aaa = root;
root.x0 = viewerHeight / 2;
root.y0 = 0;
@@ -589,6 +588,11 @@
update(root);
centerNode(root);
+ setTimeout(function () {
+ firstChild = root.children[0];
+ click(firstChild);
+ }, 1500);
+
// recursive function needed to get data for {{selected}} node
// result = ""
// function getData (d) {