Эх сурвалжийг харах

[search] Propagate onSelectRange

Enrico Berti 11 жил өмнө
parent
commit
1a1ede70d0

+ 1 - 5
apps/search/static/js/charts.ko.js

@@ -83,11 +83,7 @@ function barChart(element, options, isTimeline) {
     if (isTimeline) {
       _chart = nv.models.multiBarWithFocusChart();
       _chart.enableSelection();
-      _chart.onSelectRange(function(from, to){
-        console.log("SELECT RANGE!")
-        console.log(from);
-        console.log(to);
-      });
+      _chart.onSelectRange(options.onSelectRange);
     }
     else {
       _chart = nv.models.multiBarChart();