From e506523fffe5fb6ac7b61082c3e289278adbf671 Mon Sep 17 00:00:00 2001 From: marcos Date: Thu, 15 Apr 2021 13:55:14 +0200 Subject: [PATCH] fixed minnor error --- pandora_console/include/graphs/flot/pandora.flot.js | 4 ++-- pandora_console/views/dashboard/cell.php | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pandora_console/include/graphs/flot/pandora.flot.js b/pandora_console/include/graphs/flot/pandora.flot.js index 6a145e3e6f..ba93380bc1 100644 --- a/pandora_console/include/graphs/flot/pandora.flot.js +++ b/pandora_console/include/graphs/flot/pandora.flot.js @@ -114,7 +114,8 @@ function pandoraFlotPie( // Reset styles function resetInteractivity() { - legends.css("color", "#fff"); + legends.css("color", "#3F3F3D"); + legends.attr("class", "invert_filter"); } if (water_mark) { @@ -293,7 +294,6 @@ function pandoraFlotPieCustom( function resetInteractivity() { legends.each(function() { // fix the widths so they don't jump around - console.log($(this)); $(this).css("color", "#3F3F3D"); }); } diff --git a/pandora_console/views/dashboard/cell.php b/pandora_console/views/dashboard/cell.php index cbc3463acc..2b16a73316 100644 --- a/pandora_console/views/dashboard/cell.php +++ b/pandora_console/views/dashboard/cell.php @@ -73,7 +73,11 @@ if ($manageDashboards !== 0) { $output .= ''; $output .= ''; -if ($options['background'] === null && $config['style'] === 'pandora_black') { +if ($config['style'] === 'pandora') { + $options['background'] = '#fff'; +} + +if ($config['style'] === 'pandora_black') { $options['background'] = '#222'; }