Commit 903fdd37 by Zachary Tong

Add 'get_fields' message so that panels can obtain the

currently active fields
parent 296d58cf
...@@ -22,6 +22,10 @@ angular.module('kibana.fields', []) ...@@ -22,6 +22,10 @@ angular.module('kibana.fields', [])
$scope.panel.query = docs.query; $scope.panel.query = docs.query;
$scope.docs = docs.docs; $scope.docs = docs.docs;
}); });
eventBus.register($scope,"get_fields", function(event,id) {
console.log("field.get_fields");
eventBus.broadcast($scope.$id,$scope.panel.group,"selected_fields",$scope.active);
});
} }
$scope.reload_list = function () { $scope.reload_list = function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment