From dab2525355bbc15bd295a6d559b8ac3d938b3b43 Mon Sep 17 00:00:00 2001 From: danielmaya Date: Fri, 1 Dec 2017 13:32:50 +0100 Subject: [PATCH] Fixed jquery error --- pandora_console/include/graphs/flot/pandora.flot.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pandora_console/include/graphs/flot/pandora.flot.js b/pandora_console/include/graphs/flot/pandora.flot.js index 6fe97ae606..879197d6d1 100644 --- a/pandora_console/include/graphs/flot/pandora.flot.js +++ b/pandora_console/include/graphs/flot/pandora.flot.js @@ -213,21 +213,19 @@ function pandoraFlotPieCustom(graph_id, values, labels, width, } //$('.legend>table').css('border',"1px solid #E2E2E2"); - if(background_color == 'transparent'){ + if(background_color == 'transparent') { $('.legend>table').css('background-color',""); $('.legend>div').css('background-color',""); $('.legend>table').css('color',"#aaa"); - } - else if (background_color == 'white') { + } else if (background_color == 'white') { $('.legend>table').css('background-color',"white"); $('.legend>table').css('color',"black"); - } - else if (background_color == 'black') { + } else if (background_color == 'black') { $('.legend>table').css('background-color',"black"); $('.legend>table').css('color',"#aaa"); } - $('.legend').over(function(){ + $('.legend').hover(function() { return false; });