mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#7963 Fixed netflow view 3
This commit is contained in:
parent
fb449910c9
commit
1f32c62de9
@ -101,18 +101,23 @@ function chordDiagram(recipient, elements, matrix, width) {
|
|||||||
|
|
||||||
if (event.type == "mouseover") {
|
if (event.type == "mouseover") {
|
||||||
const chords = chord.chords();
|
const chords = chord.chords();
|
||||||
|
let aux = 0;
|
||||||
$.each(chords, function(key, value) {
|
$.each(chords, function(key, value) {
|
||||||
if (
|
console.log(aux);
|
||||||
(value.source.index == i && value.target.subindex == i) ||
|
if (aux < 5) {
|
||||||
(value.source.subindex == i && value.target.index == i)
|
|
||||||
) {
|
|
||||||
if (
|
if (
|
||||||
$("#tooltip").is(":hidden") ||
|
(value.source.index == i && value.target.subindex == i) ||
|
||||||
$("#tooltip").length == 0
|
(value.source.subindex == i && value.target.index == i)
|
||||||
) {
|
) {
|
||||||
show_tooltip(value);
|
if (
|
||||||
} else {
|
$("#tooltip").is(":hidden") ||
|
||||||
add_tooltip(value);
|
$("#tooltip").length == 0
|
||||||
|
) {
|
||||||
|
show_tooltip(value);
|
||||||
|
} else {
|
||||||
|
add_tooltip(value);
|
||||||
|
aux++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user