mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
custom link colors
Former-commit-id: 44a7df6e814679cfff1a0489374c25edcc9ab52c
This commit is contained in:
parent
4910da5e31
commit
9ef66a11c4
@ -1781,13 +1781,18 @@ class NetworkMap
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use worst case to set link color.
|
if (isset($rel['link_color'])) {
|
||||||
$item['link_color'] = self::getColorByStatus(
|
// Direct color definition.
|
||||||
self::getWorstStatus(
|
$item['link_color'] = $rel['link_color'];
|
||||||
$item['status_start'],
|
} else {
|
||||||
$item['status_end']
|
// Use worst case to set link color.
|
||||||
)
|
$item['link_color'] = self::getColorByStatus(
|
||||||
);
|
self::getWorstStatus(
|
||||||
|
$item['status_start'],
|
||||||
|
$item['status_end']
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// XXX: Compatibility with Tooltipster - Simple map controller.
|
// XXX: Compatibility with Tooltipster - Simple map controller.
|
||||||
if ($this->useTooltipster) {
|
if ($this->useTooltipster) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user