Commit ad512e65 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

element tree contains definition of BioEntity class

parent 314788d5
......@@ -408,7 +408,11 @@ Configuration.prototype.getElementTypeTree = function () {
var treeNodes = {
"lcsb.mapviewer.model.map.BioEntity": {
text: "BioEntity",
children: []
children: [],
data: {
className: "lcsb.mapviewer.model.map.BioEntity",
name: "BioEntity"
}
}
};
......@@ -438,7 +442,7 @@ Configuration.prototype.getElementTypeTree = function () {
for (var treeNodeName in treeNodes) {
if (treeNodes.hasOwnProperty(treeNodeName)) {
var treeNode = treeNodes[treeNodeName];
if (treeNode.data !== undefined) {
if (treeNode.data !== undefined && treeNode.data.parentClass !== undefined) {
var parentNode = treeNodes[treeNode.data.parentClass];
if (parentNode.data === undefined || parentNode.data.name !== "Compartment") {
parentNode.children.push(treeNode);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment