Browse Source

HUE-8188 [frontend] Avoid graying out all the Hue SVGs on chart select events

Enrico Berti 7 years ago
parent
commit
ab362b1a49
1 changed files with 4 additions and 2 deletions
  1. 4 2
      desktop/core/src/desktop/static/desktop/js/ko.charts.js

+ 4 - 2
desktop/core/src/desktop/static/desktop/js/ko.charts.js

@@ -1251,13 +1251,15 @@
   };
 
   function chartsUpdatingState() {
-    $(document).find("svg").css("opacity", "0.5");
+    $('.nvd3').parents('svg').css('opacity', '0.5');
   }
+
   window.chartsUpdatingState = chartsUpdatingState;
 
   function chartsNormalState() {
-    $(document).find("svg").css("opacity", "1");
+    $('.nvd3').parents('svg').css('opacity', '1');
   }
+
   window.chartsNormalState = chartsNormalState;
 
   var tipBuilder = function () {