فهرست منبع

fixed file loading

Rashid Khan 12 سال پیش
والد
کامیت
e793ac4b5f
2فایلهای تغییر یافته به همراه2 افزوده شده و 3 حذف شده
  1. 1 1
      panels/dashcontrol/module.js
  2. 1 2
      panels/pie/module.js

+ 1 - 1
panels/dashcontrol/module.js

@@ -112,7 +112,7 @@ angular.module('kibana.dashcontrol', [])
 
   $scope.file_load = function(file) {
     $http({
-      url: "dashboards/default",
+      url: "dashboards/"+file,
       method: "GET",
     }).success(function(data, status, headers, config) {
       var dashboard = data

+ 1 - 2
panels/pie/module.js

@@ -246,7 +246,7 @@ angular.module('kibana.pie', [])
             show: scope.panel.labels,
             radius: 2/3,
             formatter: function(label, series){
-              return '<div style="font-size:8pt;text-align:center;padding:2px;color:white;">'+
+              return '<div ng-click="build_search(panel.query.field,\''+label+'\') "style="font-size:8pt;text-align:center;padding:2px;color:white;">'+
                 label+'<br/>'+Math.round(series.percent)+'%</div>';
             },
             threshold: 0.1 
@@ -311,7 +311,6 @@ angular.module('kibana.pie', [])
         }
       });
 
-
     }
   };
 })