133 enhancement bubbletext (#136)

* added extra fields to popup

* open new tab with device info
This commit is contained in:
mattieserver
2022-08-03 11:46:37 +02:00
committed by GitHub
parent 1b36b9e7df
commit faf156a6b2
3 changed files with 20 additions and 1 deletions
@@ -147,5 +147,15 @@ function handleLoadData() {
}
}
});
graph.on("doubleClick", function (params) {
console.log(params.nodes);
selected_devices = params.nodes;
for (selected_device in selected_devices) {
url = "/dcim/devices/" + selected_devices[selected_device] + "/";
window.open(url, "_blank");
}
});
}
}