Bladeren bron

HUE-2395 [search] Broken widget in Solr Apache logs example

Fixed call to a possibly undefined JS method
Fixed z-index of Search Bar
Enrico Berti 11 jaren geleden
bovenliggende
commit
a8bfb0c
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 1 1
      apps/search/static/css/search.css
  2. 1 1
      desktop/core/static/js/ko.charts.js

+ 1 - 1
apps/search/static/css/search.css

@@ -39,7 +39,7 @@
   width: 100%;
   position: fixed;
   top: 28px;
-  z-index: 1000;
+  z-index: 1010;
 }
 
 .search-bar input {

+ 1 - 1
desktop/core/static/js/ko.charts.js

@@ -523,7 +523,7 @@ function barChartBuilder(element, options, isTimeline) {
           });
         }
       }
-      if ($(element).width() < 300){
+      if ($(element).width() < 300 && typeof _chart.showLegend != "undefined"){
         _chart.showLegend(false);
       }
       _chart.transitionDuration(0);