Commit a9a0b9ca authored by unknown's avatar unknown

Added url for regesta

parent 0e15ddec
......@@ -253,6 +253,15 @@ export class Graph2D {
const nodeSummary = this.graph2d.getNodeSummary(this.selectedNodeId);
this.getContextSubMenu("Expand", nodeSummary, this.expandNodes, extraInfo);
this.getContextSubMenu("Collapse", nodeSummary, this.collapseNodes, extraInfo);
if (e.target._private.data.data.url) {
const url = e.target._private.data.data.url;
let newDiv = document.createElement("div");
newDiv.className = "menuItem";
newDiv.innerHTML = "<i class='fa fa-fw'></i>Inspect";
newDiv.addEventListener('click', () => window.open("http://www.regesta-imperii.de/id/" + url, "_blank"));
extraInfo.appendChild(newDiv);
}
}
clearGraph = () => {
......
module.exports = { version: '192' }
module.exports = { version: '195' }
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