Skip to content
Snippets Groups Projects
Commit 30e9dae9 authored by Harm Kube's avatar Harm Kube
Browse files

Fixed interaction with filter overlay

parent 44e5393a
No related branches found
No related tags found
No related merge requests found
......@@ -74,5 +74,6 @@ class FilterOverlay {
} else {
target.style.opacity = 1.0;
}
this.graph.infoOverlay.bottomMenu.toggleCategory(target.type);
}
}
......@@ -106,6 +106,7 @@ class NodeNeighborOverlay {
collTabContent.list = list;
this.tabContentPages[cls] = collTabContent;
collTabContent.marker = openMarkerTabs;
collTab.addEventListener("click", function() {
if(collTabContent.style.display === "flex") {
jQuery(collTabContent).slideUp("fast");
......@@ -186,6 +187,24 @@ class NodeNeighborOverlay {
}
}
}
toggleCategory (type) {
for (const page of Object.values(this.tabContentPages)) {
if(page.type == type) {
if(this.tabNavHandles[page.type].style.display == "flex") {
this.tabNavHandles[page.type].style.display = "none";
const collTabContent = this.tabContentPages[page.type];
jQuery(collTabContent).slideUp("fast");
collTabContent.marker.innerText = '+';
} else {
if(page.list.hasChildNodes()) {
this.tabNavHandles[page.type].style.display = "flex";
this.tabNavHandles[page.type].marker.innerText = '+';
}
}
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment