Explorar o código

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 %!s(int64=11) %!d(string=hai) anos
pai
achega
a8bfb0cb72
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  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);